Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

So today I wrote my first program

Name: Anonymous 2010-09-22 4:40


#include <stdio.h>
#include <stdlib.h>
int main(void)
{
 return (printf("hello, world") < 0) ? EXIT_FAILURE : EXIT_SUCCESS;
}


My teacher said that I shouldn't program at all. What the fuck?

Name: Anonymous 2010-09-22 7:06

>>6
Most functions tend to do that. It's intuitive in a conditional statement. Programs, however, usually do the opposite.

Name: Anonymous 2010-09-22 7:14

>>6
functions do that. not program exit codes. so for every syscall do you #define new status codes? you sound like the type of retard that would #define ONE 1 and #define ZERO 0.

also did you just imply that the read and write syscalls are obscure? what the fuck am i reading?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List