-

Functions HI-TECH C SYSTEM

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 00:11, 1 August 2017 by Kumokosi (talk | contribs) (Created page with "<strong>SYSTEM</strong> ==SYNOPSIS== #include <sys.h> int system(char * s) ==DESCRIPTION== When executed under MS-DOS <strong>system</strong>() will pass the argument...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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