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

HOW DO I GET OUT OF THIS SHIT

Name: Anonymous 2010-08-25 15:16



/* stuff happens here */

if (mpz_out_str(stdout, 10, counter) == 0) {
 mpz_clear(counter);
 // FUCKING FPRINT
 if (fprintf(stderr, "something failed\n") < 0) {
  if (fprintf(stderr, "something failed\n") < 0) {
   if (fprintf(stderr, "something failed\n") < 0) {
    if (fprintf(stderr, "something failed\n") < 0) {
     if (fprintf(stderr, "something failed\n") < 0) {
      if (fprintf(stderr, "something failed\n") < 0) {
       if (fprintf(stderr, "something failed\n") < 0) {
        if (fprintf(stderr, "something failed\n") < 0) {
         // WHAT THE FUCK?!
        }
       }
      }
     }
    }
   }
  }
 }
 return EXIT_FAILURE;
}

/* stuff happens here too */

Name: Anonymous 2010-08-26 20:58

>>14
Because the abort call causes the program to return a non-zero value (typically EXIT_FAILURE), so when the !fork() expression is evaluated, it is false and the for loop never makes it through a single iteration. Only two forks of the program are spawned.

I'll take a chocolate-chip oatmeal, please.

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