|
|
1.1 root 1: /* @(#)strout.c 4.1 (Berkeley) 12/21/80 */
2: #include <stdio.h>
3:
4: _strout(count, string, adjust, file, fillch)
5: register char *string;
6: register count;
7: int adjust;
8: register struct _iobuf *file;
9: {
10: while (adjust < 0) {
11: if (*string=='-' && fillch=='0') {
12: putc(*string++, file);
13: count--;
14: }
15: putc(fillch, file);
16: adjust++;
17: }
18: while (--count>=0)
19: putc(*string++, file);
20: while (adjust) {
21: putc(fillch, file);
22: adjust--;
23: }
24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.