1 /*- 2 * %sccs.include.proprietary.c% 3 */ 4 5 #if defined(LIBC_SCCS) && !defined(lint) 6 static char sccsid[] = "@(#)strout.c 8.1 (Berkeley) 06/04/93"; 7 #endif /* LIBC_SCCS and not lint */ 8 9 #include <stdio.h> 10 11 _strout(count, string, adjust, file, fillch) 12 register char *string; 13 register count; 14 int adjust; 15 register FILE *file; 16 { 17 while (adjust < 0) { 18 if (*string=='-' && fillch=='0') { 19 putc(*string++, file); 20 count--; 21 } 22 putc(fillch, file); 23 adjust++; 24 } 25 while (--count>=0) 26 putc(*string++, file); 27 while (adjust) { 28 putc(fillch, file); 29 adjust--; 30 } 31 } 32