Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
Optimized C code
1
Name:
Anonymous
2007-05-10 9:02
ID:YpMhiddP
Dear /prog/, how can I further optimize this piece of code to make it ENTERPRISE ? :
int main(void){
return(main());
}
27
Name:
Anonymous
2007-05-12 16:16
ID:Heaven
None of you are checking whether 'main' exists before calling it. You never know, it could be a NULL pointer and cause the whole program to crash.
[code]
int main(void) {
while (fork()) {
assert(main != NULL);
main();
}
}
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List