Whats wrong?!?_(re)
Thu, 12 Jun 1997 14:59:31 +0200
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
Frank Heckenbach (heckenb@mi.uni-erlangen.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es