Maurice Lombardi wrote:
Probably a name like pCString (like BP's pChar but more exact) would avoid any confusion of this kind in being clear by itself. Clarity is one of the benefits one looks in using pascal rather than C.
Frank Heckenbach wrote:
(I also think `PChar' is unprecise because is suggests that it's a pointer to a single char rather than a string -- which is the same in C, but not in Pascal.)
What about 'pChars'? (It's my self-made naming convention in my own projects to use p<plural of foo> for a 'pointer to an array of foo'. Due to my experience, it works fine to avoid confusion.)
Actually, multiple chars is NOT a C string. E.g. a string could be padded with a certain char instead of nul terminated.
Hmm, pNulTerminatedArrayOfChars ?
Naah, pCString is better then.