If you are interested in alignment from the perspective that you expect dynamic strings to be stored in a sequential format in memory, then you might be disappointed.

Briefly, when dynamic strings are [re]allocated they are fitted into the first space available in the allocated string segments. Therefore, where the dynamic string data actually resides will depend on lots of factors, including whether there are "holes" available in an existing string segment, whether a new string segment needs to be allocated, etc.
Padding/alignment issues figure in this algorithm too, naturally.
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: