TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PETER HAYWOOD
from: ROGER SCUDDER
date: 1998-02-09 12:00:00
subject: Re: char to string

Hello Peter.
06 Feb 98 03:19, Peter Haywood wrote to Roger Scudder:
EL>> strcat(stringvar, &charvar);
RS>> Very nice solution!  I can't understand why I never see
RS>> anyone using it.
PH>   I'll tell you why: because it's garbage. This will try to copy
PH> characters until null ('\0') is found. But since charvar is only a
 Boy, and I thought this one was dead and buried.  It's really
 about like when you're first starting out programming and you
 think that a return code of 0 means the program is finished and
 will work perfectly now.   Not long after that you're learning
 how to read a dump. Well, I relapsed all the way back to day one
 when I wrote that.
 Bob Stout has an interesting alternative in Snippets, but I plan
 to stick copying to the specific element one character at a time.
 -Roger
... I am Shaggy of Borg. You shall be groovy.
--- 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™.