I thought that might be the case. You could always roll your own function that works like itoa and then concatenate the string, though.
Here's a lightly tested version just to give you an idea:
Code:
void my_itoa(int value, char *buf)
{
size_t i = 0;
size_t j = 0;
int sign = value < 0;
if (sign)
value *= -1;
while (value > 0) {
buf[i++] = (value % 10) + '0';
value /= 10;
}
if (sign)
buf[i++] = '-';
buf[i] = '\0';
--i;
for (j = 0; j < i; j++, i--) {
char temp = buf[i];
buf[i] = buf[j];
buf[j] = temp;
}
}
strncat is also simple to implement. I got this off the man page:
Code:
char*
strncat(char *dest, const char *src, size_t n)
{
size_t dest_len = strlen(dest);
size_t i;
for (i = 0 ; i < n && src[i] != '\0' ; i++)
dest[dest_len + i] = src[i];
dest[dest_len + i] = '\0';
return dest;
}