Environment Interfacing
Reading environment variables:
Executing a “$SHELL” shell command:
fflush( stdout );
system( “ls -atl” );
Can also execute a system call and have its output sent to a pipe instead of stdout: (we’ll talk more about pipes in chapter 12)
FILE *pipe;
pipe = popen( “ls -atl”, “r” );
...
pclose( pipe );