On , Frank Schmid (2:245/6837.11@fidonet) wrote:
> Because it doesn't work ! strcat copies the string beginning at the
ddress
> of charvar until it discovers a NUL-character, but where would it be...
> some 1 or 2 characters away or even 1k or more ?????
> if you use strcat you MUST use a NUL-terminated string.
All...
I've been loath to mention it since it's a C, rather than C++, solution,
but the strchcat() function in SNIPPETS does what you want. It even has ANSI
shielding in the SNIP_STR.H header which translates the name to strChcat()
whenever __STDC__ is defined.
--- QM v1.00
---------------
* Origin: MicroFirm : Down to the C in chips (1:106/2000.6)
|