| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | converting char to string |
Hi, how do you convert a char to a string?
I would like to concatenate a single char onto the end of a string but it
says it can't convert int to char * when I do this:
char charvar;
char stringvar[90];
strcat(stringvar, charvar);
I also tried doing:
strcat(stringvar, (char *)charvar);
but that made a big mess of things although gave no error message.
--- Maximus 3.01
---------------
* Origin: The Ultimate (3:771/340) |
|
| 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™.