TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: FRANK SCHMID
from: ROGER SCUDDER
date: 1998-01-24 10:14:00
subject: Re: char to string

Hello Frank.
22 Jan 98 00:56, Frank Schmid wrote to Roger Scudder:
EL>>> strcat(stringvar, &charvar);
>>  Very nice solution!  I can't understand why I never see
>>  anyone using it.
FS> Because it doesn't work !
FS> if you use strcat you MUST use a NUL-terminated string.
 I let myself think it worked, because I ran some tests and it
 worked, but it must have been luck or something that the character
 was followed by a NUL in each case.
 Roger
... Open mouth, insert foot, echo internationally.
--- Msged 4.20 beta 3
(1:273/404@fidonet)
---------------
* Origin: Hodge-Podge Support BBS, Upper Darby, Pennsylvania, USA

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™.