System Function Available in C
system("....")
- is provided as part of C or other languages to allow you
to request that the operating system do something for you
in the same way you normally ask via the shell.
- Example:
system("lpr -PC135 myfile.txt");
- this is NOT the same as a system call
which makes a direct request to the operating system.
A system call looks like a call to a particular C function.
Examples of system calls are: open, close, read, write, stat, and brk.
Table of Contents