[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

StrPCopy

Copy an ansistring to a null-terminated string.

Declaration

Source position: syspchh.inc line 45

function StrPCopy(

  Dest: PChar;

  Source: String

):PChar;

Description

StrPCopyConverts the Ansistring in Sourceto a Null-terminated string, and copies it to Dest. Destneeds enough room to contain the string Source, i.e. Length(Source)+1bytes.

Errors

No checking is performed to see whether Destpoints to enough memory to contain Source.

See also

StrPLCopy

  

Copy a limited number of characters from an ansistring to a null-terminated string.

StrPas

  

Convert a null-terminated string to an ansistring.