-

Difference between revisions of "Functions HI-TECH C SPAWNL"

From HI-TECH C for CP/M Fan WIKI(EN)
Jump to: navigation, search
(Created page with "<strong>SPAWNL, SPAWNV, SPAWNVE</strong> ==SYNOPSIS== int spawnl(char * n, char * argv0, ...); int spawnv(cahr * n, char ** v) int spawnve(char * n, char ** v, char ** e)...")
 
(No difference)

Latest revision as of 23:41, 31 July 2017

SPAWNL, SPAWNV, SPAWNVE

SYNOPSIS

int spawnl(char * n, char * argv0, ...);
int spawnv(cahr * n, char ** v)
int spawnve(char * n, char ** v, char ** e)


DESCRIPTION

These functions will load and execute a sub-program, named by the argument n. The calling conventions are similar to the functions execl() and execv(), the difference being that the spawn functions return to the calling program after termination of the sub-program, while the exec functions return only if the program could not be executed. Spawnve() takes an environment list in the same format as the argument list which will be supplied to the executed program as its environment.

SEE ALSO

execl, execv