c append int to string code example
Example 1: c int to string
#include <stdio.h>
int main()
{
char number_str[10];
int number = 25;
sprintf(number_str, "%d", number);
printf("Converted to string : %s\n", number_str);
return 0;
}
Example 2: c str add int
char buf[12];
snprintf(buf, 12, "FPS: %d", framesCount);