[fpc-pascal]Ansistrings

Jonas Maebe jonas at zeus.rug.ac.be
Fri Jun 21 11:40:01 CEST 2002


On Fri, 21 Jun 2002, Florian Klaempfl wrote:

> >>Well really when I need to null terminate the ansistring with:
> >>ansist:=ansist+#0;
> >
> >Ansistrings are always null-terminated.
>
> Are you sure :) ?

Yes. There is no helper to convert an ansistring to a pchar (it's just a
pointer to an ansirec that gets its type changed to a pointer to a char)
and all ansistring handling routines in the RTL make sure all ansistrings
are/remain null-terminated.


Jonas





More information about the fpc-pascal mailing list