[fpc-pascal] Strings

Michael Schnell mschnell at lumino.de
Tue Jul 16 12:50:48 CEST 2013

On 07/16/2013 12:17 PM, Carsten Bager wrote:
> If you look at my example underneath, I depend on that a dynamic string always is assigned
> memory space in one connected block.
As the compiler allows for assigning a string to a pchar, the strings 
need to be compatible to C strings. Thus:
  - The content starts at the location the pchar points to and fills 
consecutive addresses
  - a $0 character is appended after the last relevant character.

Of course the OS is free to use the mapped hardware RAM address in a way 
that for DMA the string content might come in separate chunks.

Is this what you mean ?

- Michael

More information about the fpc-pascal mailing list