Message: 328363, 93 lines Posted: 11:03pm PDT, Sat Sep 20/86, imported: 2:25pm PDT, Sun Sep 21/86 Subject: network news article To: Info-amiga From: root@sfulccr.UUCP Relay-Version: version B 2.10.2 9/18/84 SMI; site fornax.uucp Path: fornax!ubc-vision!alberta!ihnp4!cbatt!cbosgd!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: net.micro.amiga Subject: fprintf() xprintf() source Message-ID: <8609200834.AA08385@cory.Berkeley.EDU> Date: 20 Sep 86 08:34:12 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 82 Here are two printf() calls. fprintf() for FILE HANDLES, and xprintf() for XSTDIO FILE POINTERS. (These calls will also exist in the next revision of MY.LIB). If anything it's another example of assembly programming: library calls, C<->Assembly interfacing, and stack manipulation. The program is almost completely self contained (except for calls to xwrite(), Write(), and RawDoFmt()) It even has comments! In anycase, it should be a boon for those of you who need a ?printf()... you can adapt it to almost anything. "Defense Computer... they say it got smart" -Matt