A classic

| | Comments (0)

(From CodeSOD: The Pyramid of Error)

if (error)
  if (fprintf(stderr,"An error occured while writing to the file")<0){
    if (fprintf(stderr,"An error occured while writing to stderr")<0){
      if (fprintf(stderr,"An error occured while writing to stderr")<0){
        if (fprintf(stderr,"An error occured while writing to stderr")<0){
          if (fprintf(stderr,"An error occured while writing to stderr")<0){
            return fprintf(stderr, "An error occured while writing to stderr");
            /* lets stop here, its enough */
          }
        }
      }
    }
  }

Leave a comment


Type the characters you see in the picture above.