TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRIS DOWNS
from: NEIL HELLER
date: 1997-10-19 09:56:00
subject: CHAR[] STRINGS

CD> Since you are defining 'string' to include the zero terminating byte
CD> you've got it exactly right.  The string 'the' requires 4 bytes of
CD> storage.  If you try to stuff it into 3 bytes, the 'the' gets stored
CD> and where the zero has gone is anyone's guess.
The full "the0" gets stored.  The problem is that the first byte of
who-knows-what has been overwritten by the hex zero.
 * KWQ/2 1.2i * 
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)

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