im making c code in linux and im having problems with one command, id should bring up a list but instead id doesnt do nothing, there are no error's, can anyone solve whats wrong ?
void environ()
{
extern char **environ;
int i=0;
for (i = 0; environ !=NULL;i++)
{
printf(environ);
printf("\n");
}
}
i dont get any indents in the code... it says there are no errors.. but yet when i compile it and type in environ the next line just asks for another command and it shouldnt do that, it should display a list first.