I apologize for asking a super-simple question, but my
book says nothing about it...(Well, at least I don't think
it does. I checked the index, but nothing.)
Quick question. What does the exit() function do? What
would it do in this snippet of code:
Code:int main() { //Question on exit() FILE *filestuff; filestuff=fopen("file","w"); if(filestuff==NULL) { pritnf("Sorry. \n"); exit(1); } return 0; }
I imagine it exits from something. But what? And what
parameters does it accept? What do they mean?
Much obliged.