home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 125.img / PRO-C4.ZIP / BENCH1.ZIP / PRINT / PRIMATIV.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-28  |  1.2 KB  |  34 lines

  1. /***( primative.c )*************************************************************
  2. *                                                                              *
  3. *  Written: Brent Faulkner - June 20, 1989                                     *
  4. *  Updated: Brent Faulkner - June 20, 1989                                     *
  5. *                                                                              *
  6. ********************************************************************************
  7. *                                                                              *
  8. * Contents:    emit_seq() - emit a prtcap sequence to the printer device       *
  9. *                                                                              *
  10. *******************************************************************************/
  11. /* include files */
  12. #include <stdio.h>
  13. #include <bench.h>
  14. #include "prt.h"
  15.  
  16. /*
  17.  * Emit a prtcap sequence to the printer device
  18. */
  19. void emit_seq(seqidx)
  20. int seqidx;
  21. {
  22.     int i;
  23.  
  24. #ifdef PDEBUG
  25.     if(sizdef[seqidx] == 0)
  26.         fprintf(stderr, "DEBUG: warning - sequence with index %d is not defined\n", seqidx);
  27. #endif
  28. /* wail out the requested sequence */
  29.     for(i = 0; i < sizdef[seqidx]; i++)
  30.         fputc(prtdef[seqidx][i], devfp);
  31. }
  32.  
  33.  
  34.