home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!walker
- From: walker@twix.unx.sas.com (Doug Walker)
- Subject: Re: using the __tinymain function...
- Originator: walker@twix.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <C1ExAn.6IJ@unx.sas.com>
- Date: Mon, 25 Jan 1993 13:54:23 GMT
- References: <C1BptJ.8yC@ccu.umanitoba.ca>
- Nntp-Posting-Host: twix.unx.sas.com
- Organization: SAS Institute Inc.
- Keywords: C
- Lines: 27
-
-
- In article <C1BptJ.8yC@ccu.umanitoba.ca>, ummuir05@ccu.umanitoba.ca (John Derek Muir) writes:
- |> I'd like to use the __tinymain function with my program, AND use the
- |> standard io function called printf.
- |>
- |> Now, do I just have to open a file called stdio?? or what?
-
- 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.
-
- If this isn't good enough for you, use sprintf() to format your
- message, then use AmigaDOS calls to print it out. Or if you don't
- mind if your program doesn't run under 1.3, use the AmigaDOS
- built-in versions of formatted output under 2.0 and above.
-
- |> John D. Muir ummuir05@ccu.umanitoba.ca
-
- --
- *****
- =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
- *|. o.| || 1200/2400/9600 Dual
- | o |// For all you do, this bug's for you!
- ======
- usenet: walker@unx.sas.com bix: djwalker
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-
-