148399Sbostic /*-
248399Sbostic * %sccs.include.proprietary.c%
348399Sbostic */
448399Sbostic
526664Sdonn #if defined(LIBC_SCCS) && !defined(lint)
6*61242Sbostic static char sccsid[] = "@(#)strout.c 8.1 (Berkeley) 06/04/93";
748399Sbostic #endif /* LIBC_SCCS and not lint */
822149Smckusick
92034Swnj #include <stdio.h>
102034Swnj
_strout(count,string,adjust,file,fillch)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