Hi all,
I am working on a class project to make a simple shell program.
I am googleing examples, and I came across this one on linuxgazette
char c = ' ';
printf("n[MY_SHELL ] ");
while(c != EOF) {
c = getchar();
if(c == 'n')
printf("[MY_SHELL ] ");
}
printf("n");
return 0;
I understand that they are just initializing the char to ensure that it is not EOF - but what does stand for?
Thanks in advance,
crabpot
Software/Hardware used:
ASKED:
September 16, 2008 8:25 PM
UPDATED:
September 16, 2008 9:14 PM