código C
Estaba currando esta mañana cuando he escrito la función más grande de toda mi vida como programador:
int checkLife(life_t *my_life)
{
while (my_life->status == ALIVE)
{
currar(my_life);
if (my_life->curro == SUCKS) {
my_life->hipoteca++;
my_life->ilusiones--;
}
else if (my_life->curro == WONDERFUL) {
/* not reached... you are not supposed to be here */
return SUCCESS;
}
} /* end while */
return END_LIVE;
}
En fin. Un saludo de lunes:
Juanjo