Reminds me of an interview question a colleague of mine once shared -- near the end of the interview, he'd ask the interviewees to rate their own C knowledge on a scale of 1-10. Anybody who answered in the range of 7-9 would get this question popped on them:
What does this function do?
Code
void
doit(a,b)
char *a, *b;
{
char *c, **d;
for( d = &b; *d; d++ )
{
c = *d;
while( *a++ = *c++ )
;
a--;
}
}
Though in fairness, the variable names for p, q, and t all make sense given that it's in the context of cryptography.
In other news, I just got the new retina MBP from work today. And it is sweeeeeeet.
Good god. Did they decide to use pre-ANSI C method declaration style just to be assholes? That function is scary.