-
programming
Well as you can see im new to c and its going along good sofar. I want to code something useful or something interesting like a program that can show my systems info or something.. I am not smart, but yet im not stupid.. So i was wondering if anyone can put me on the right track
ps
Confused if i should of posted this on the General forum
-
Here is a start:
Code:
#include <stdio.h>
/* envp is not portable */
int main ( int argc, char **argv, char **envp )
{
while ( *envp != NULL )
puts ( *envp++ );
return 0;
}
;)
-
nice but where did you get envp from if its not declared in the header file( stdio.h )
-
envp is a common extension to the arguments that main accepts.
-
Damn i would of never figured this one out.. heh thank you lets hope in the future i can still remember about this variable :)