1*48399Sbostic /*- 2*48399Sbostic * %sccs.include.proprietary.c% 3*48399Sbostic */ 4*48399Sbostic 526664Sdonn #if defined(LIBC_SCCS) && !defined(lint) 6*48399Sbostic static char sccsid[] = "@(#)strout.c 5.3 (Berkeley) 04/20/91"; 7*48399Sbostic #endif /* LIBC_SCCS and not lint */ 822149Smckusick 92034Swnj #include <stdio.h> 102034Swnj 112034Swnj _strout(count, string, adjust, file, fillch) 122034Swnj register char *string; 132034Swnj register count; 142034Swnj int adjust; 1517951Sserge register FILE *file; 162034Swnj { 172034Swnj while (adjust < 0) { 182034Swnj if (*string=='-' && fillch=='0') { 192034Swnj putc(*string++, file); 202034Swnj count--; 212034Swnj } 222034Swnj putc(fillch, file); 232034Swnj adjust++; 242034Swnj } 252034Swnj while (--count>=0) 262034Swnj putc(*string++, file); 272034Swnj while (adjust) { 282034Swnj putc(fillch, file); 292034Swnj adjust--; 302034Swnj } 312034Swnj } 32