Mail Archives: djgpp/2000/01/11/19:26:33
Aha! I get it now. Thanks alot guys :)
> When you use the strcat function, it is your responsibility to make
> sure
> that the destination buffer is big enough to hold the combined
> string.
> Therefore 'strcat(msg, " typed a line\n")' where msg is initialized
> as
> "Processing with GUI" will mess up other variables (first on the
> line is
> the variable that's declared after the string.
>
> The idiom
> char buf[1024];
> strcat(buf, "Some text");
> strcat(buf, "Some more text.");
> is usually used to build up a short dynamic string.
>
> --
> Weiqi Gao
> weiqigao AT a DOT crl DOT com
--Robert Whitlock
http://www.geocities.com/CapeCanaveral/Hangar/9520/
ICQ 60123256
- Raw text -