Quote:
Originally Posted by daveT
A wooden table is a tree, actually, but we don't go around carving "me and her 4ever" on every table we see.
char CharArray0[] = "String to Concat To";
char CharArray1[] = "String to Concat With";
char * String = (char *)malloc( sizeof(CharArray0) + sizeof(CharArray1) + 1 );
if (String) {
strcpy( String, CharArray0 );
strcat( String, CharArray1 );
}
Does that work not sure off the top of my head. A string is an array of chars. There isn't really that much difference with an array of integers, array of objects, well an array of anything really.