It’s a real pain

Christoph

/*
 * Damn, this function is so ugly, it’s a real pain. 19 args.
 * ARGH! But without it I had to copy two times this code,
 * and even if I choose to use a struct to pass all the args,
 * they are still too many and it will be uglier than this.
 * I’m sorry.
 * Ah, yes, this function splits the unpacked qspn_pkt and
 * returns a lot of vars. * DO NOT TRY THIS AT HOME *
 */

Source: Direct link to the source code
Software: Netsukuku
Programming language: C

BTW: today is Developers Shame Day

1 Star2 Stars3 Stars4 Stars5 Stars (9 Bewertungen, Durchschnitt: 4,89 von 5)
Loading...Loading...