CompuServe Messages

prototype question

    03-Nov-92 13:28:37
Fm: Jeff Pratt 76057,3645
To: Bob Ashforth 71501,3457
Bob, Hmmm — that was a typo in my message. The parameters in the program are ok. What's weird about this situation is that there's another routine, with the same parameters, called the same way, about 5 lines above, that works just fine. When I run it thru the debugger, I see things like: SURFACE *sp; PAIR xy; VECTOR nv sp = < allocate & initialize memory for a SURFACE struct > z = find_zn( sp, xy, nv ); < d sp —> 0x326B20 ….> < ts > double find_zn( SURFACE *bs, PAIR p, VECTOR v ) { <some local variable declarations> if(bs->surface_type == SPHERE) { …. < d bs —> 0x3177DA…. > Also, the cross-reference listing and the debugger both seem to think that find_zn ( and other routines too ) return int's — but their prototypes declare them as returning doubles — and I'm compiling with ANSI & STRICT settings so I'd be getting compile errors if the proto's weren't there…. Thanks for taking a look, though… (your comment made me double-check my .h files, which never hurts…) … Whapped from Jeff P.