Frank Heckenbach wrote:
Rick Engebretson wrote:
Reading more of the "old" GPC manual finds mention of using the "CString" type in place of the "PChar" type. To me (GPC newbie) this is a necessary link between the two languages.
In GPC `CString' and `PChar' are equivalent. According to the usual naming convention `PChar' would mean a pointer to a char. Therefore I recommend using `CString' when it's meant as a C-style string, i.e. pointer to a sequence of characters terminated by a NUL character. (The fact that C doesn't distinguish between pointers to single elements and arrays doesn't have to mislead us.)
Frank
It is a good step towards less ambiguity in the pascal language.