home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20295 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  898 b 

  1. Path: sparky!uunet!europa.eng.gtefsd.com!emory!swrinde!sdd.hp.com!caen!uflorida!usf.edu!figment!woodard
  2. From: woodard@figment.tmc.edu (Chris Woodard)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Questions on PRINTERS, PRINTING
  5. Message-ID: <1993Jan23.183312.19447@ariel.ec.usf.edu>
  6. Date: 23 Jan 93 18:33:12 GMT
  7. References: <79658@hydra.gatech.EDU>
  8. Sender: news@ariel.ec.usf.edu (News Admin)
  9. Organization: University of South Florida, Department of Computer Science and Engineering
  10. Lines: 12
  11.  
  12.  
  13.  
  14. To print from within a Borland C program, the following code will work
  15.  
  16.     fprintf( stdprn, "\f" );    /* send a form feed */
  17.     fprintf( stdprn, "Feed me!\n" );  /* send an amusing message */
  18.  
  19. stdprn is a predefined stream pointer in the Borland package just like
  20. stdout, stdin, or stderr; it gets initialized and pointed to LPT1 when
  21. the program starts up (and the first fprintf call is made).
  22.  
  23. Chris Woodard
  24.