home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 17037 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  802 b 

  1. Path: sparky!uunet!world!ksr!jfw
  2. From: jfw@ksr.com (John F. Woods)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: has anybody heard of 'onexit' ?
  5. Message-ID: <19167@ksr.com>
  6. Date: 23 Nov 92 10:56:59 EST
  7. References: <1epdlsINNkrm@bigboote.WPI.EDU>
  8. Sender: news@ksr.com
  9. Lines: 12
  10.  
  11. llew@bigwpi.WPI.EDU (Lok C. Lew Yan Voon) writes:
  12. >now i decided to convert all the prog into C by using f2c.
  13. >when i tried to compile everything, the linker complains:
  14. >    Undefined:
  15. >    onexit
  16. >does anyone know what's going on?
  17. >(i've no knowledge of C beyond chp one of K&R!)
  18.  
  19. This is not a standard C function; probably it is part of the FORTRAN support
  20. that f2c assumes is present.  Presumably it has similar functionality to
  21. atexit() (which was standardized in ANSI C), but it's hard to tell without
  22. seeing the source in question.
  23.