projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
add regexp to SEE ALSO list
[unix-history]
/
usr
/
src
/
lib
/
libcompat
/
4.3
/
strout.c
#if defined(LIBC_SCCS) && !defined(lint)
static char
sccsid
[] =
"@(#)strout.c 5.2 (Berkeley) %G%"
;
#endif LIBC_SCCS and not lint
#include <stdio.h>
_strout
(
count
,
string
,
adjust
,
file
,
fillch
)
register
char
*
string
;
register
count
;
int
adjust
;
register
FILE
*
file
;
{
while
(
adjust
<
0
) {
if
(*
string
==
'-'
&&
fillch
==
'0'
) {
putc
(*
string
++,
file
);
count
--;
}
putc
(
fillch
,
file
);
adjust
++;
}
while
(--
count
>=
0
)
putc
(*
string
++,
file
);
while
(
adjust
) {
putc
(
fillch
,
file
);
adjust
--;
}
}