-=> Quoting Brian Wood to Victor Kemp <=-
BW> Maybe this would work, but there are probaly several right answers.
BW>
BW> int t=strlen(stringvar);
BW> if(t stringvar[t]=charvar; /* put charvar on the end */
BW> stringvar[t+1]='\0'; /* keep it a string! */
BW> }
BW> else
BW> /* some error message, stringvar is full! */
Actually, I think that could overwrite stringvar too, since we're going
to add 2 characters to the end of it, accounting for the null.
Probably best to use
if(t * Origin: River Canyon Rd. BBS Chattanooga, Tn (1:362/627)
|