|
![](/i/fill.gif) |
>> IIRC, in Turbo Pascal, position 0 is the length. (And since it's a
>> single byte, no strings longer than 255 characters...)
>
> Yep, Turbo Pascal stored the length rather than using the C method of
> null-terminating the string.
...with the disadvantage of having a maximum string size, and the
advantage of making certain memory management operations much easier...
Ah, the days of plain ASCII, before anybody spoke of Unicode. Hey, wait
a sec - C is *still* back in the days of plain ASCII...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |