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
printf
defined in line
15; used 119 times
- in /usr/src/bin/csh/alloc.c line
86,
365-382(6)
- in /usr/src/bin/csh/sh.c line
291,
307,
354,
371,
636,
658,
866-868(2),
925,
936
- in /usr/src/bin/csh/sh.dir.c line
79-82(3),
90-92(2)
- in /usr/src/bin/csh/sh.err.c line
58(2),
114
- in /usr/src/bin/csh/sh.exec.c line
330
- in /usr/src/bin/csh/sh.exp.c line
582-584(2),
592-594(2)
- in /usr/src/bin/csh/sh.file.c line
203,
280-288(3),
395
- in /usr/src/bin/csh/sh.func.c line
147,
535,
779,
858,
1017-1026(4),
1070,
1104
- in /usr/src/bin/csh/sh.glob.c line
43(2),
51(2),
75-79(2),
90,
586,
606,
720-721(2),
746
- in /usr/src/bin/csh/sh.hist.c line
100,
140
- in /usr/src/bin/csh/sh.lex.c line
109,
1147-1154(3)
- in /usr/src/bin/csh/sh.misc.c line
90,
112-114(2)
- in /usr/src/bin/csh/sh.print.c line
25,
31-34(2),
42
- in /usr/src/bin/csh/sh.proc.c line
123,
196,
219,
287,
512-518(3),
550-563(5),
571,
582,
591,
598-604(3),
610-630(8),
638-642(3),
648,
784,
839,
845-846(2),
856-857(2)
- in /usr/src/bin/csh/sh.set.c line
549,
683
- in /usr/src/bin/csh/sh.time.c line
113-131(5),
137-153(5),
165
Defined variables
sccsid
defined in line
8;
never used