1: /* Copyright (c) 1979 Regents of the University of California */
2: /*
3: * Hacked "printf" which prints through putchar.
4: * DONT USE WITH STDIO!
5: */
6: printf(fmt, args)
7: char *fmt;
8: {
9: _doprnt(fmt, &args, 0);
10: }
11:
12: _strout(string, count, adjust, foo, fillch)
13: register char *string;
14: register int count;
15: int adjust;
16: register struct { int a[6]; } *foo;
17: {
18:
19: if (foo != 0)
20: abort();
21: while (adjust < 0) {
22: if (*string=='-' && fillch=='0') {
23: putchar(*string++);
24: count--;
25: }
26: putchar(fillch);
27: adjust++;
28: }
29: while (--count>=0)
30: putchar(*string++);
31: while (adjust) {
32: putchar(fillch);
33: adjust--;
34: }
35: }
Defined functions
printf
defined in line
6; used 117 times
- in /usr/src/ucb/csh/alloc.c line
9,
208,
214
- in /usr/src/ucb/csh/malloc.c line
8
- in /usr/src/ucb/csh/sh.c line
290,
307,
352,
367,
577,
601,
686,
697,
814-816(2)
- in /usr/src/ucb/csh/sh.dir.c line
65-68(3),
76-78(2)
- in /usr/src/ucb/csh/sh.err.c line
49(2),
105
- in /usr/src/ucb/csh/sh.exec.c line
245,
300
- in /usr/src/ucb/csh/sh.exp.c line
561-563(2),
571-573(2)
- in /usr/src/ucb/csh/sh.func.c line
129,
501,
811,
869,
967-975(4),
1030
- in /usr/src/ucb/csh/sh.glob.c line
30(2),
38(2),
62-66(2),
76,
598,
618,
729-730(2),
755
- in /usr/src/ucb/csh/sh.hist.c line
116
- in /usr/src/ucb/csh/sh.lex.c line
97-101(2),
1145-1152(3)
- in /usr/src/ucb/csh/sh.misc.c line
58-59(2),
94-96(2)
- in /usr/src/ucb/csh/sh.print.c line
14,
24,
30-33(2),
41,
104-105(2),
111
- in /usr/src/ucb/csh/sh.proc.c line
142,
215,
238,
307,
522-528(3),
560-573(5),
581,
592,
600,
607-613(3),
619-639(8),
648-652(3),
658,
809-813(3),
862,
875-876(2)
- in /usr/src/ucb/csh/sh.set.c line
546
- in /usr/src/ucb/csh/sh.time.c line
85-89(3),
142-180(10)