Thank you once again tabstop A little reading on the ole man page after you pointed that out and I found a solution to the problem. One more quick question is relating to an error I am getting when I compile with the -pedantic open enabled:
Code:
if((pRet = popen("ps -el", "r")) == NULL) {
fprintf(stderr, "ERROR: File pointer returned a Null value\n");
fprintf(stderr, "ERRNO = %s\n", strerror(errno));
exit(1);
}
http.c:275: warning: implicit declaration of function ‘popen’
http.c:275: warning: assignment makes pointer from integer without a cast
But I have the pret declared as a FILE * to hold the return value from popen?