home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19162 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.5 KB  |  41 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!concert!sas!mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: using the __tinymain function...
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <C1F36r.FEH@unx.sas.com>
  8. Date: Mon, 25 Jan 1993 16:01:38 GMT
  9. References: <C1BptJ.8yC@ccu.umanitoba.ca> <C1ExAn.6IJ@unx.sas.com> <C1Ezx0.Ezq@polaris.utu.fi>
  10. Nntp-Posting-Host: cdevil.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Keywords: C
  13. Lines: 26
  14.  
  15.  
  16. In article <C1Ezx0.Ezq@polaris.utu.fi>, sutela@polaris.utu.fi (Kari Sutela) writes:
  17. >walker@twix.unx.sas.com (Doug Walker) writes:
  18. >
  19. >>This is kind of silly.  The only difference between __tinymain and
  20. >>__main is that __main initializes stdio, which is what you want
  21. >>to use.  So use the normal __main.
  22. >
  23. >I have been wondering whether using the FILE functions (fprintf and
  24. >friends) is legal if one doesn't any startup code at all.  At the
  25. >moment, I can't remember why I'd want to do that, but there must have
  26. >been a real good reason :-)  Is it legal?
  27.  
  28. Not exactly.  Level 2 I/O functions rely on variables which are set up
  29. in the startup code.
  30.  
  31. You'ld find this out as soon as you tried to use 'em... the linker will
  32. tell you about a bunch of unresolved symbols.
  33.  
  34. -- 
  35. ---------------
  36. Jim Cooper
  37. (jamie@unx.sas.com)                             bix: jcooper
  38.  
  39. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  40. and not necessarily those of my employer.
  41.