MB>> way #2:
MB>> char foo[2] = { charvar, 0 };
MB>> strcat (stringvar, foo);
JdBP> I'm glad that I'm not the only one familiar with #2. (-:
JdBP> One slight niggle: The return value from strlen() is a `size_t' not an
JdBP> `int'.
JdBP> On some platforms, notably 16-bit Intel x86 architectures using "huge"
JdBP> memory
JdBP> models, `size_t' is a wider type than `int' is.
Some people are very knowledgeful and i certainly like that.
matju
--- Terminate 4.00/Pro
---------------
* Origin: The Lost Remains Of SatelliteSoft BBS (1:163/215.42)
|