- Function
Convert an integer into a string.
- Header
- Declaration
char* __fastcall__ itoa (int val, char* buf, int radix);- Description
itoaconverts the integervalinto a string usingradixas the base.- Limits
- There are no provisions to prevent a buffer overflow.
- If
valcontainsINT_MIN, the behaviour is undefined.- The function is non standard, so it is not available in strict ANSI mode. You should probably use
sprintfinstead.- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- Availability
cc65
- See also
- Example
None.