whats wrong?
Code:
...
fflush(stdout);
exit(0);
}
printf("this line should never be printed\n");
} /* end of main */
long unsigned int yourfunction(unsigned int n){
/* fopen example */
FILE *pFile;
pFile = fopen ("myfile.txt","w");
if (pFile != NULL){
fputs ("fopen example\n", pFile);
fclose (pFile);
}else{
exit(1);
}
return 0;
}
output:
Code:
cs091770@csroot:~/Desktop$ gcc kernel_system.c
kernel_system.c: In function ‘main’:
kernel_system.c:296: error: expected declaration or statement at end of input