From: tmancuso@drew.edu (tina)
Newsgroups: du.cla.csci
Subject: CS26 nightmare, or, C is evil
Date: 6 Mar 91 16:12:36 EST
Once upon a time there were 3 pointers. The Papa pointer pointed to a big
array. The Mama pointer pointed to a double precision floating-point. And
the Baby pointer pointed to a little integer. One day they all entered a
function, and a little lost pointer named Goldilocks entered their house
(affectionately known as main()). Goldilocks was hungry so she called
strcpy() to copy Papa's array into herself. Her calls to malloc() slowed
the main program to a near standstill, but Goldie didn't care. She then
went for Mama's double precision floating-point. But before she could get
Baby's integer, the three pointers came back, and they were so angry at
Goldie's thievery that they caused a run-time error and the whole house
caved in.
The above actually happened. I'm not kidding. Really.
In other words: OH MY GOD MY PROGRAM CRASHED AGAIN, IT WAS DUE THIS MORNING
AND IT DOESN'T WORK! I HATE C. I NEVER WANT TO SEE ANOTHER POINTER AS LONG
AS I LIVE. DOWN WITH KERNIGHAN AND RITCHIE!
--Tina "no, I'm not stressed...really" M.
P.S. After I wrote this I got the %&^%*$ program to work. I think it wanted
to spite me.
---------------------------------------------------------------------------