I think we got things messed up a bit in this thread.
I don't think actual syscalls as these: http://syscalls.kernelgrok.com/ has much to do with it.
You can read more about system calls at:
http://en.wikipedia.org/wiki/System_call
This is what we talking about:
... system is a function used to execute subprocesses and commands ...
http://en.wikipedia.org/wiki/System_%28C_standard_library%29
So you can use it to run non C commands, witch I was trying to say earlier. And then it all depends on what system and whats installed so you don't want to use it if you can avoid it and if you need portability.
This works in Linux:
#include <stdio.h> // requred for printf.
#include <stdlib.h> // required for system.
// See http://en.wikipedia.org/wiki/System_%28C_standard_library%29
int main( int argc, char *argv[] ){
printf ("Text to print.");
getchar();
system("clear"); // clear is a terminal command in Linux. /usr/bin/clear
return 0;
}
Helpful list of C functions:
http://en.wikipedia.org/wiki/List_of_C_functions


