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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: using the __tinymain function...
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <C1ExAn.6IJ@unx.sas.com>
  8. Date: Mon, 25 Jan 1993 13:54:23 GMT
  9. References:  <C1BptJ.8yC@ccu.umanitoba.ca>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Keywords: C
  13. Lines: 27
  14.  
  15.  
  16. In article <C1BptJ.8yC@ccu.umanitoba.ca>, ummuir05@ccu.umanitoba.ca (John Derek Muir) writes:
  17. |> I'd like to use the __tinymain function with my program, AND use the
  18. |> standard io function called printf.
  19. |> 
  20. |> Now, do I just have to open a file called stdio??  or what?
  21.  
  22. This is kind of silly.  The only difference between __tinymain and
  23. __main is that __main initializes stdio, which is what you want
  24. to use.  So use the normal __main.
  25.  
  26. If this isn't good enough for you, use sprintf() to format your
  27. message, then use AmigaDOS calls to print it out.  Or if you don't
  28. mind if your program doesn't run under 1.3, use the AmigaDOS
  29. built-in versions of formatted output under 2.0 and above.
  30.  
  31. |>   John D. Muir                 ummuir05@ccu.umanitoba.ca
  32.  
  33. -- 
  34.   *****
  35. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  36.  *|. o.| ||                                          1200/2400/9600 Dual
  37.   | o  |//     For all you do, this bug's for you!
  38.   ====== 
  39. usenet: walker@unx.sas.com                            bix: djwalker 
  40. Any opinions expressed are mine, not those of SAS Institute, Inc.
  41.  
  42.