/* * LIFE.C - Life implementation module * * May 17, 2007 * Developed by The Programmer * */ #include #include #include #define ACTION_PROGRAMMING 0x1337 int main () { time_t seconds; while ( !muerte ) { while ( (seconds % 3600) != 0) pensar(ACTION_PROGRAMMING); seconds = time (NULL); } if ( !descansar(rand(), rand(), rand() & 1, rand() & 1) ) { break; } } return (NULL); } int pensar(int topic) { char *memoria; if ( topic != ACTION_PROGRAMMING) { Sleep(36000); return(1057); } else { memoria = malloc( (size_t) INFINITE); return(101); } } int descansar(int trabajo, int estres, int depresion, int diversion) { if ( trabajo && estres && depresion && !diversion ) { return (false); } else { return (true); } }