TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: THOMAS HABETS
from: JONATHAN DE BOYNE POLLARD
date: 1998-01-22 21:35:00
subject: converting char to string

 VK>> Hi, how do you convert a char to a string?
 TH> char ch;
 TH> char str[80];
 TH> str[0] = ch;
 TH> str[1] = 0;
Or, idiomatically :
        char ch ;
        char str[2] = { ch } ;
 ¯ JdeBP ®
--- FleetStreet 1.19 NR
---------------
* Origin: JdeBP's point, using Squish (2:440/4.3)

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