1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley Software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #ifndef lint
   8: static char *sccsid = "@(#)printf.c	5.2 (Berkeley) 6/6/85";
   9: #endif
  10: 
  11: /*
  12:  * Hacked "printf" which prints through putchar.
  13:  * DONT USE WITH STDIO!
  14:  */
  15: printf(fmt, args)
  16: char *fmt;
  17: {
  18:     _doprnt(fmt, &args, 0);
  19: }
  20: 
  21: _strout(count, string, adjust, foo, fillch)
  22: register char *string;
  23: register int count;
  24: int adjust;
  25: register struct { int a[6]; } *foo;
  26: {
  27: 
  28:     if (foo != 0)
  29:         abort();
  30:     while (adjust < 0) {
  31:         if (*string=='-' && fillch=='0') {
  32:             putchar(*string++);
  33:             count--;
  34:         }
  35:         putchar(fillch);
  36:         adjust++;
  37:     }
  38:     while (--count>=0)
  39:         putchar(*string++);
  40:     while (adjust) {
  41:         putchar(fillch);
  42:         adjust--;
  43:     }
  44: }

Defined functions

_strout defined in line 21; never used

Defined variables

sccsid defined in line 8; never used
Last modified: 1985-06-06
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 986
Valid CSS Valid XHTML 1.0 Strict