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: #if !defined(lint) && defined(DOSCCS)
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 128 times
- in /usr/src/bin/csh/alloc.c line
86,
365-382(6)
- in /usr/src/bin/csh/alloc11.c line
11,
203,
209-219(3)
- in /usr/src/bin/csh/sh.c line
291,
307,
354,
371,
637,
659,
867-869(2),
926,
937
- 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
307
- in /usr/src/bin/csh/sh.exec2.c line
142,
202,
244
- 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,
536,
780,
859,
1021-1030(4),
1075,
1110
- 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
124,
199,
222,
290,
515-521(3),
553-566(5),
574,
585,
594,
601-607(3),
613-633(8),
641-645(3),
651,
787,
842,
848-849(2),
859-860(2)
- in /usr/src/bin/csh/sh.set.c line
549,
683
- in /usr/src/bin/csh/sh.time.c line
117-122(2),
128-141(4),
147-163(5),
175
Defined variables
sccsid
defined in line
8;
never used