1: /* @(#)strout.c 2.1 SCCS id keyword */ 2: #include <stdio.h> 3: 4: _strout(string, count, 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: }