/* a slightly confused C program
by James W. Morris that does
nothing for the earth.
*/
/* On 10/11/2009, "Alan Sondheim"
wrote:
>it has to do with inertia.
>there are things built into
>the geopolitical system.
*/
#include <stdio.h>
#include <stdlib.h>
/* James will not bother saving the earth:
after all, he has computer programs
to write which is a very enjoyable and
stimulating task, but mostly a very very
time consuming task.
*/
typedef enum {
RESOURCES,
NO,
CERTAINLY_NOT,
YES_JAMES_WILL_SAVE_THE_EARTH
} _earth_choice;
int main()
{
/* this is a pointless assignment...
*/
_earth_choice
will_we_save_the_earth =
YES_JAMES_WILL_SAVE_THE_EARTH;
/* ...which will be ignored for the remainder
of the program.
*/
/* dig up the earth and extract its resources
until it can no longer support life:
*/
while(CERTAINLY_NOT) {
/* waste resources:
*/
calloc(1024, 1024);
printf(
"JAMES IS WRITING A COMPUTER PROGRAM:\n"
"The Earth Will Not Be Saved!\n");
/* free returns resources back to the (eco)
system. but here, we are just pretending,
for RESOURCES is just an enumeration with
a value of 0 - it will cause a segmentation
fault and kill the entire process.
*/
free(RESOURCES);
}
/* this will never happen, it is unreachable
with the current logic... but at least James
acknowledges the possibility. however, the
notion, that once fixed, the Earth is fixed
for ever, is a rather naieve one.
*/
printf("The Earth Is Saved!\n");
return THE_EARTH_IS_SAVED;
}
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour