Hello: I hate strings in C. I have three int values that correspond to minutes, seconds and milliseconds, which I obtained using gettimeofday(). My problem is that I want to concatenate this values into a neatly readable string of the form: min:secs:msecs
This can be easily done in vb by just adding the strings, example: (my vars are named min, secs and msecs)
min+":"+secs+":"msecs See what I mean??
Since there isn't really a string type in C, just arrays of chars, what can I do?? I know there are functions like atoi() to convert ASCII to integer, but is there a reverse one.
I dont want to use:
printf("time: %d : %d : %d\n", min, sec, msec);
I want something like:
printf("%s\n", timestring);


thanks,

J