Sign in Join
FPDoc Onlineexperiment

CreateShellArgV function deprecated

In unit BaseUnix

Create a null-terminated array of strings from a command-line string.

Declaration

pascal
function CreateShellArgV(const prog: ShortString): PPAnsiChar

Description

CreateShellArgV creates a command-line string for executing a shell command using 'sh -c'. The result is a null-terminated array of null-terminated strings suitable for use in fpExecv and friends.

Errors

If no more memory is available, a heap error may occur.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.