Commit | Line | Data |
---|---|---|
18e5fa7e BJ |
1 | #include <stdio.h> |
2 | ||
3 | _strout(count, string, adjust, file, fillch) | |
4 | register char *string; | |
5 | register count; | |
6 | int adjust; | |
7 | register struct _iobuf *file; | |
8 | { | |
9 | while (adjust < 0) { | |
10 | if (*string=='-' && fillch=='0') { | |
11 | putc(*string++, file); | |
12 | count--; | |
13 | } | |
14 | putc(fillch, file); | |
15 | adjust++; | |
16 | } | |
17 | while (--count>=0) | |
18 | putc(*string++, file); | |
19 | while (adjust) { | |
20 | putc(fillch, file); | |
21 | adjust--; | |
22 | } | |
23 | } |