1: /* @(#)vaxprintf.c 2.1 SCCS id keyword */
2: /* Copyright (c) 1980 Regents of the University of California */
3: /*
4: * Hacked "printf" which prints through putchar.
5: * DONT USE WITH STDIO!
6: */
7: printf(fmt, args)
8: char *fmt;
9: {
10: _doprnt(fmt, &args, 0);
11: }
12:
13: _strout(count, string, adjust, foo, fillch)
14: register char *string;
15: register int count;
16: int adjust;
17: register struct { int a[6]; } *foo;
18: {
19:
20: if (foo != 0)
21: abort();
22: while (adjust < 0) {
23: if (*string=='-' && fillch=='0') {
24: putchar(*string++);
25: count--;
26: }
27: putchar(fillch);
28: adjust++;
29: }
30: while (--count>=0)
31: putchar(*string++);
32: while (adjust) {
33: putchar(fillch);
34: adjust--;
35: }
36: }
Defined functions
printf
defined in line
7; used 92 times
- in /usr/src/ucb/oldcsh/alloc.c line
9,
171,
177
- in /usr/src/ucb/oldcsh/malloc.c line
8
- in /usr/src/ucb/oldcsh/sh.c line
285,
501,
581,
592,
717-719(2)
- in /usr/src/ucb/oldcsh/sh.err.c line
48(2),
119
- in /usr/src/ucb/oldcsh/sh.exec.c line
236,
291
- in /usr/src/ucb/oldcsh/sh.exp.c line
540-542(2),
550-552(2)
- in /usr/src/ucb/oldcsh/sh.func.c line
168,
524,
804
- in /usr/src/ucb/oldcsh/sh.glob.c line
31(2),
39(2),
63-67(2),
77,
585,
605,
701-702(2),
726
- in /usr/src/ucb/oldcsh/sh.hist.c line
92
- in /usr/src/ucb/oldcsh/sh.lex.c line
97-101(2),
1110-1112(2)
- in /usr/src/ucb/oldcsh/sh.misc.c line
58-59(2),
94-96(2)
- in /usr/src/ucb/oldcsh/sh.parse.c line
25,
115-121(5)
- in /usr/src/ucb/oldcsh/sh.print.c line
14,
24,
30-33(2),
41,
94-95(2),
101
- in /usr/src/ucb/oldcsh/sh.sem.c line
170
- in /usr/src/ucb/oldcsh/sh.vmwait.c line
107-116(6),
129-130(2),
151-155(3),
228
- in /usr/src/ucb/oldcsh/sh.wait.c line
159-168(6),
181-182(2),
208-212(3),
251-289(10),
367