TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Bob van der Poel 76510,2203 (X)
from: Bruce MacKenzie 71725,376
date: 1991-07-24 17:44:52
subject: #11466-C Compiler Problem

#: 11484 S3/Languages
    24-Jul-91  17:44:52
Sb: #11466-C Compiler Problem
Fm: Bruce MacKenzie 71725,376
To: Bob van der Poel 76510,2203 (X)

Bob,
 This matter of string initialization with double quotes and the COCO compiler
got hashed around here about a year ago.  The gist of it is that except for one
dimensional character arrays the COCO compiler hacks it up.  For two
dimensional arrays and structure initialization the COCO compiler erroneously
loads in pointers to string litterals rather than copying out the strings as it
should.  You have to single quote each character for these applications.

SOURCE: compuserve via textfiles.com

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