-
Still stuck, please help
hi, quickly read my previous message:
http://www.cprogramming.com/cboard/s...&threadid=6616
:confused: How do I implement what Fordy recommended. And whats the parameters for the Strcpy()?
1 more quick thing, but the above is most important. Know any good sites for learning the finer side of Strings (all most bizarre to me coming from Java)... Something intermediate.
Thanks
-
char* strcpy(char* destination ,const char* source)
copies null terminated string source to destination ( which must somehow have been previously allocated ( array/new/malloc)). destination is returned.
-
dont forget to add 1 to your memory allocation. This will account for the NULL that is added.