TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ERIC LONDAITS
from: ROGER SCUDDER
date: 1998-01-20 14:16:00
subject: char to string

Hello Eric.
17 Jan 98 11:50, Eric Londaits wrote to Victor Kemp:
VK>> char stringvar[90];
VK>> char charvar;
VK>> strcat(stringvar, charvar);
EL> strcat takes *char as parameters... so try
EL> strcat(stringvar, &charvar);
EL> (&charvar should be the memory address of charvar, just like stringvar is 
EL> the memory address that points to *stringvar)
 
 That's the first time I ever say anybody do that.
 Very nice solution!  I can't understand why I never see
 anyone using it.
Roger
... 'If it ain't broke, you can probably still fix it.' - Tim Allen
--- 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™.