[Pyrex] Total newbie needs code review
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Sep 12 07:28:41 CEST 2005
Chris Stromberger wrote:
>>You haven't allocated any memory for the input and
>>output structs.
>
> But it seems to work as I wrote it...? What's going on then?
Sheer luck, I expect. Whatever junk initial value
was in your pointers happened to point to a piece
of memory that was writable and didn't clobber
anything in a way that caused an immediate crash.
Not a good thing to rely on!
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list