Frank Heckenbach wrote:
CBFalconer wrote:
Waldek Hebisch wrote:
... snip ...
No, all elements of `Test' have well-defined value. It is standard: `Test' is padded with blanks to the full length (so all positions from 12 to 256 contain blanks). GPC `write' strips trailing blanks.
Does it? That's news to me. ;-) The code in predef.c uses `length = PASCAL_STRING_LENGTH (p);' and for fixed-strings, PASCAL_STRING_LENGTH takes the length of the array as declared, without trimming any blanks. The following program (compiled with or without `--classic-pascal') seems to confirm this.
Right, I should have checked before writing.