[fpc-pascal] more questions on storage

Marco van de Voort marcov at stack.nl
Wed Sep 26 13:24:43 CEST 2007


> > On 26 Sep 2007, at 11:56, Marc Santhoff wrote:
> > ansistring rather than for shortstring. Separately from that there is  
> > also a type called "longstring" which is basically a shortstring but  
> > with a 4 byte length field. It's this longstring which has not been  
> > implemented properly.
> > 
> > Ansistrings (and thus {$longstrings on}) work fine.
> 
> Ah, okay. The Fog is lifting fastly. :)
> 
> And AnsiStrings are pretty much compatible to C's char*. Very handy.

Yes, though ansistrings may contain #0's.



More information about the fpc-pascal mailing list