TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: FRANK SCHMID
from: BOB STOUT
date: 1998-01-23 04:11:00
subject: Re: char to string

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.