-
Functions HI-TECH C SYSTEM
From HI-TECH C for CP/M Fan WIKI(EN)
SYSTEM
SYNOPSIS
#include <sys.h> int system(char * s)
DESCRIPTION
When executed under MS-DOS system() will pass the argument string to the command processor, located via the environment string COMSPEC, for execution. The exit status of the command processor will be returned from the call to system(). For example, to set the baud rate on the serial port on an MS-DOS machine:
system("MODE COM1:96,N,8,1,P");
This function will not work on CP/M-86 since it does not have an invokable command interpreter. Under Concurrent CP/M the CLI system call is used.
SEE ALSO
spawnl, spawnv