themadman
2006-09-28 11:54:57 UTC
char * result = "abcdefg";
char dummy[10];
int x = 12;
sprintf(dummy, "%d", x);
i have tried to print "dummy" and it worked. but when i used the function "strcat(result, dummy)" and tried to print "result", it gave me segmentation fault. please help me