1: /* Copyright (c) 1979 Regents of the University of California */
2: #ifdef TRACE
3: #include <stdio.h>
4: #undef putchar
5: #endif
6:
7: printf(fmt, args)
8: {
9:
10: _doprnt(fmt, &args, 0);
11: }
12:
13: _strout(string, count, adjust, file, fillch)
14: register char *string;
15: register int count;
16: int adjust;
17: register struct { int a; } *file;
18: {
19:
20: while (adjust < 0) {
21: if (*string=='-' && fillch=='0') {
22: #ifdef TRACE
23: if (file)
24: putc(*string++, file);
25: else
26: #endif
27: putchar(*string++);
28: count--;
29: }
30: #ifdef TRACE
31: if (file)
32: putc(fillch, file);
33: else
34: #endif
35: putchar(fillch);
36: adjust++;
37: }
38: while (--count>=0)
39: #ifdef TRACE
40: if (file)
41: putc(*string++, file);
42: else
43: #endif
44: putchar(*string++);
45: while (adjust) {
46: #ifdef TRACE
47: if (file)
48: putc(fillch, file);
49: else
50: #endif
51: putchar(fillch);
52: adjust--;
53: }
54: }
Defined functions
printf
defined in line
7; used 41 times
- in /usr/src/ucb/ex/ex2/ex.c line
165
- in /usr/src/ucb/ex/ex2/ex_cmds.c line
577,
696
- in /usr/src/ucb/ex/ex2/ex_cmds2.c line
89
- in /usr/src/ucb/ex/ex2/ex_cmdsub.c line
94-97(2)
- in /usr/src/ucb/ex/ex2/ex_get.c line
132
- in /usr/src/ucb/ex/ex2/ex_io.c line
84-98(5),
504-506(2),
563,
725-737(6)
- in /usr/src/ucb/ex/ex2/ex_put.c line
138,
745
- in /usr/src/ucb/ex/ex2/ex_re.c line
448-450(2)
- in /usr/src/ucb/ex/ex2/ex_set.c line
206-215(3)
- in /usr/src/ucb/ex/ex2/ex_subr.c line
245-247(2),
354,
429
- in /usr/src/ucb/ex/ex2/ex_temp.c line
323,
357
- in /usr/src/ucb/ex/ex2/ex_unix.c line
92,
180,
207
- in /usr/src/ucb/ex/ex2/ex_vadj.c line
1071
- in /usr/src/ucb/ex/ex2/ex_vget.c line
347-351(2)
- in /usr/src/ucb/ex/ex2/ex_vops2.c line
267