When you checks in delphi help the topic about functions and rutines by category you will note tha there are two sections, string and null terminated string rutines, the "string" rutines use the first character for denote the string lenght; nul terminate string are used as pchar.