How do you convert an int (integer) to a string? I\'m trying to make a function that converts the data of a struct into a string to save it in a fi
int
struct
If you are using GCC, you can use the GNU extension asprintf function.
char* str; asprintf (&str, "%i", 12313); free(str);