home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16103 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.5 KB

  1. Xref: sparky comp.lang.c:16103 comp.unix.programmer:5195
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!stanford.edu!rutgers!psinntp!psinntp!newstand.syr.edu!lynx.cat.syr.edu!dljarvis
  3. From: dljarvis@lynx.cat.syr.edu (David Jarvis)
  4. Newsgroups: comp.lang.c,comp.unix.programmer
  5. Subject: strange memory problem
  6. Message-ID: <1992Nov6.105307.1800@newstand.syr.edu>
  7. Date: 6 Nov 92 15:53:07 GMT
  8. Organization: Syracuse University
  9. Lines: 32
  10.  
  11. I'm having a strange memory problem (or perhaps it's strange because
  12. of my lack of expertise), and can't seem to track it down.  The reason
  13. I can't track it down is because:  (in an abbreviated version) 
  14.  
  15. main ()
  16. {
  17.     printf ("this gets printed\n");
  18.     my_function (arg);
  19.     printf ("this does not\n");
  20. }
  21.  
  22. my_function (int arg)
  23. {
  24.     /* do some stuff */
  25.     printf ("this gets printed\n");
  26. }
  27.  
  28. So ... I see the program going _into_ the function, I see the function
  29. execute and tell me when it's about to return to main, but I never see
  30. the return message in main!  Could someone offer some insights into
  31. how I might track down such a problem (or better yet what it might be?! :-))?
  32. (quick responses are *greatly* appreciated, I can't take no more
  33. sleepless nights in front of this terminal! :-) )
  34. oh btw: this is on SCO Xenix ver 2.3.4, with SCO dev/sys ver 2.3.1, using
  35. GNU's gcc ver 1.40
  36. Please respond directly via email to david@dynamix.com 
  37. (or dljarvis@cat.syr.edu) and if there is sufficient interest
  38. I could post the summary to the net.
  39.  
  40. many thanks
  41. /david
  42. david@dynamix.com 
  43.