CStrings/PChars (was: Whats wrong?!?)
Tue, 17 Jun 1997 15:31:23 +0200 (MET DST)
According to The African Chief:
>
> Great! Now one last thing about pChars - can you make
> them type-compatible with zero-based arrays of Char?
> This is the case with BP - so that any function/procedure
> that takes a pChar as a parameter will accept a zero-based
> array of Char as well - thanks!
Thanks for the example programs! They make it easier to
implement.
I must admit that I do not really like this CString/PChar
stuff: All this is C, not Pascal, and I am implementing it
for compatibility's sake only - both with Borland compilers
and with C libraries which exist on many platforms and are
important to support. However, this will only work in GPC
together with the (*X+*) directive.
Greetings,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
maintainer GNU Pascal [970510] - http://home.pages.de/~gnu-pascal/ [970125]
Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es