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


Concert an array of string to an array of null-terminated strings


Source position: systemh.inc line 1557

function ArrayStringToPPchar(

  const S: array of AnsiString;

  reserveentries: LongInt



ArrayStringToPPchar creates an array of null-terminated strings that point to strings which are the same as the strings in the array S. The function returns a pointer to this array. The array and the strings it contains must be disposed of after being used, because it they are allocated on the heap.

The ReserveEntries parameter tells ArrayStringToPPchar to allocate room at the end of the array for another ReserveEntries entries.


If not enough memory is available, an error may occur.

See also



Split string in list of null-terminated strings

Documentation generated on: May 14 2021