#: 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.
|