<< Previous | Next >> | |
|
char * itoa( int value, char * buf );
Description
- Places up to a 5-digit character string, with a minus sign in the leftmost digit when appropriate, at
*buf
. The string representsvalue
, a signed number.
- Leading zeros are suppressed in the character string, except for one zero digit when
value
= 0. The longest possible string is "-32768."Parameters
- value
- 16-bit signed number to convert
- buf
- Character string of converted number in base 10
Return value
- Pointer to the end (null terminator) of the string in
buf
.Library
- STDIO.LIB
See also
- atoi, utoa, ltoa
Dynamic C Functions | << Previous | Next >> | rabbit.com |