aid_mabruk.c
Received this SMS from Hussemus:
#include <life.h>
#define AID_MABROUK 1
int main(int argc, char *argv[]) {
int happiness = 0;
while (happiness < MAX_INT) {
happiness++;
}
return AID_MABROUK;
}
The code, however needs to be patched, since MAX_INT is undefined, and a compilation error may occur!

November 4th, 2005 at 9:18 pm
heh, nice way to check your blog
Anyway, you can patch this pgm by deleting simply the while loop
looool, this follow the “why do it simple when you can do it hard” cite
November 4th, 2005 at 11:36 pm
it would be:
int happiness = 1;
while (happiness > 0) {
happiness++;
}
Thanks for the help
January 12th, 2006 at 1:32 pm
Salam,
There’s a MAXINT defined in , and you can do it even harder:
happiness=1;
while (happiness++-MAXINT)
:)
-Imed
January 12th, 2006 at 1:56 pm
Thanks Imed, I will submit your patch