12 Jun
1997
12 Jun
'97
2:59 p.m.
Peter Gerwinski wrote:
WriteLn('*',Text,'*'); { Prints out with padded #0 }
I think we agree that this is correct. (On Linux, the #0s don't appear on the screen ... I suspect the operating system (or the "terminal") "eats" them.)
Why is this correct? Isn't Text, being declared as an array of char, treated as a 0-terminated string, meaning that the #0 should not be printed? -- Frank Heckenbach, Erlangen, Germany heckenb@mi.uni-erlangen.de Turbo Pascal: http://www.mi.uni-erlangen.de/~heckenb/programs.htm Internet links: http://www.mi.uni-erlangen.de/~heckenb/links.htm
10658
Age (days ago)
10658
Last active (days ago)
0 comments
1 participants
participants (1)
-
Frank Heckenbach