I work for a large corporate mob and we have some excellent "programmers" *cough*
One of these guys is a "programmer" with approx 7 years "experience" in C, Java and
(unsuprisingly to me) VB. Curiously his title has recently changed to "architect"
which I think must mean he's got some house building skills at a level greater than
his programming ability ;->
Anyway, after setting him straight on arrays actually being exactly the size you
declare them to be in C (he thought they automatically get an extra element added
to them), I was asked to tell him what was wrong with the following code:
[code]#include
#include
#include
#include
int main()
{
char *tcaseline;
char *ptrthing;
tcaseline = (char*) malloc(256);
ptrthing = (char*) malloc(10);
strcpy(tcaseline,"");
ptrthing=strpbrk(tcaseline, ">");
ptrthing++;
free(tcaseline);
free(ptrthing);
}
[/code]So if anyone's looking for "creative programmers", or an architect to
remodel your outhouse, just ask and I'll put you in contact with him ;->
Make sure you read the other sections.. http://rinkworks.com/stupid/
Tech support people have it tough.. [;)]
Damn that's some funny sheart.