Russ Whitaker wrote:
Borland uses the terms "null-terminated strings" and "zero-based character arrays". ( Borland Pascal Language Guide, Ch 18 ).
Of their 21 functions supplied in the "strings" unit all are named str<something>
Examples: StrPas Converts a null-terminated string to a Pascal string. StrPCopy Copies a Pascal string to a null-terminated string and returns a pointer to the null-terminated string.
The problem with str<something> is that it is easy to forget it is *not* a string.
Exactly. IMHO this naming is just propaganda, since they try (or tried -- not sure about their current direction with Delphi) to move most BP code to C style strings (so they didn't have to bother with implementing a better Pascal string type in BP, and their windoze interfaces would become easier). One of the reasons that pushed me away for BP some years ago, BTW ...
I see nothing wrong with the term "cstring". Just remember that it is not a string and has its own rules.
Just my opinion. :-)
Frank