/* ShellCommsInC.c: sample program to see how shell commands can be incorporated
in standard C ANSI code
*/
# include <stdio.h>
int main ( void )
{
printf("\n* * * * * * * * * * * * * * * *\n") ;
printf("This is a test for incorporating shell comm's into ANSI C code\n") ;
system("echo") ;
system("echo '$PATH' is: $PATH") ;
system("echo") ;
system("echo '$HOME' is: $HOME") ;
system("echo") ;
system("echo '$USER' is: $USER") ;
printf("\nAnd so on..\n") ;
printf("\n* * * * * * * * * * * * * * * *\n") ;
return 0 ;
}