How about just changing the function to this:
Code:char test(const char* s1,const char* s2) { char* tmp; strncpy(tmp,s1,10); strncat(tmp, s2,10); cout << tmp; return 'a'; }
|
Results 1 to 6 of 6
Thread: simple problem!!!?Threaded View
|
Click Here to Expand Forum to Full Width |