TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: VICTOR KEMP
from: ERIC LONDAITS
date: 1998-01-17 11:50:00
subject: char to string

El Jueves 15 Enero 1998 a las 15:38, Victor Kemp le dijo a All:
 VK> Anyway I need to append a char onto the end of a string, something
 VK> like this
 VK> char stringvar[90];
 VK> char charvar;
 VK> strcat(stringvar, charvar);
strcat takes *char as parameters... so try
strcat(stringvar, &charvar);
(&charvar should be the memory address of charvar, just like stringvar is the 
memory address that points to *stringvar)
 Eric Londaits
 wocky@usa.net
--- GoldED/2 2.50 UNREG
---------------
* Origin: Jabberwock Point (4:900/265)

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