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