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

What the Shit

Name: Anonymous 2009-02-14 9:49

Confusing use of flags much?

int main(int argc, char** argv) {
  struct options options;
  return parse_options(argc,argv,&options) || run(&options);
}

Name: Anonymous 2009-02-14 19:29

>>12,14
You must be new to C.
http://www.google.com/search?q=%22returns+0+on+success%22&ie=utf-8&oe=utf-8
Actually as you can see it's not just C, all shellscripts and shell utilities are supposed to do that, hell, your "main" is supposed to return 0 on success, so it's more like unix convention or something. So while it is a bit fucked up, it's not a WTF.

I find struct options options; more disturbing.

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