compatible header functions
Hi all!
I am new to writing c programs in linux and I have trouble finding the following functions in the header files. 1)itoa: to convert an integer to a string.
2)ltoa: to convert long integer to a string.
3)strset: to set the whole string to a given character.
Please tell me if these are present in linux or if they have any equivalent functions.
Thanks in advance.
mishra.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 3 lines
I am new to writing c programs in linux and I have trouble finding the following functions in the header files.
1)itoa: to convert an integer to a string.
sprintf(buf, "%d", integer);
Quoted 1 line
2)ltoa: to convert long integer to a string.
sprintf(buf, "%ld", integer);
Quoted 1 line
3)strset: to set the whole string to a given character.
Not sure about this one. I would probably write my own if I needed it, or use strlen() and memset().
Steven Smith,
[email protected].