community.borland.com

Article #16245: PChars in TPW.

 Technical Notes Database

TN1245D.txt   PChars in TPW.
Category   :Pascal
Platform    :All
Product    :Turbo Pascal  1.0

Description:

  PChar is a special pointer type that has been added to the Pascal 
Windows language definition.  A PChar is a pointer to an array of 
characters with a maximum size of 64K and terminated by a null character
(#0).  This is a C string, and comes with all the memory management hassles 
and pointer arithmetic advantages of C. The PChars and arrays of char are
type compatible, and a Strings unit is devoted to C-string manipulation
functions (all start with "STR").  When passing a string literal to a 
procedure, the compiler will figure out whether the string literal 
should be stored in c-string format or in pascal string format, or both.




Reference:


7/16/98 4:35:43 PM
 

Last Modified: 01-SEP-99