Skip to content

Arrgh!

November 23rd, 2004 - RandomSoftware

Well, I’ve been writing a piece of code today and it took me 3 hours to realise that strcmp(txt, "message") was giving me a segfault.. because it doesn’t accept implicit parameter. putting a:

const char *msg = "message";
strcmp(txt, msg);

works…

My excuse today is that i feel very bad (have a horrible cold) and i’m staying @ home. First sick day in ages!!!

– This is a really old post published originally on my blogspot blog

Tagged with
All Tags