How can I combine a char type string with an int value.
I have a string with the value of "table_", which I defined like this:
char table[] = "table_";
And I have an int value of a random number, six digits.
I tried: strcat(table,number);
But I get errors like incompatible pointer types and so forth. I have no problem combining two char types, but I'm having no luck in combining a char & int type.
Perhaps someone could please point me in the right direction.
I'm from the perl crowd and I'm finding the transition to c a little easier than perhaps the next newbie, I should have no problem understanding a complex code example.
Thank you very much to all you c folks.
Also, is there a good site that I could go to for information on c.
And I'm on a linux server using gcc compiler.
Tony