Original Post
I''m very bad with strings and such in C++ so my question is probabely very n00bish
I have a source string as:
char cource[256];
and a destination as
char dest[40];
Now, I need to copy the contents of source to dest. If source is longer then 40 characters it must simply truncate the strings. Would this function do that for me?
sprintf(dest,"%s", source);
Thanks in advance!
Sander Maréchal
[Lone Wolves Game Development][RoboBlast][Articles][GD Emporium][Webdesign][E-mail]