Mai 10 2010

Network byte order

Christoph

/**
 * […]
 * This seems like such a hack, mostly because it’s in
 * network byte order. Figuring this stuff out sometimes
 * takes a while, but thats ok, because it gives me time to
 * try to figure out what kind of drugs the AOL people were
 * taking when they merged the two protocols.
 */

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

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 5,00 von 5)
Loading...Loading...

Feb 4 2010

It’d be funny

Christoph

/* I know the line below is really ugly. I only did it this
 * way because I thought it’d be funny :-) */

Source: Direct link to the source code
Software: Gaim / Pidgin
Programming language: C

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

Dez 23 2009

Transfer gigabytes through AIM

Christoph

/* holy crap. who the f*ck would transfer gigabytes through
   AIM?! */
static char *sizes[4] = { “bytes”, “KB”, “MB”, “GB” };

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

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