projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4_1_snap release
[unix-history]
/
usr
/
src
/
libc
/
stdio
/
sprintf.c
/* @(#)sprintf.c 4.1 (Berkeley) 12/21/80 */
#include <stdio.h>
char
*
sprintf
(
str
,
fmt
,
args
)
char
*
str
, *
fmt
;
{
struct
_iobuf _strbuf
;
_strbuf
.
_flag
=
_IOWRT
+
_IOSTRG
;
_strbuf
.
_ptr
=
str
;
_strbuf
.
_cnt
=
32767
;
_doprnt
(
fmt
, &
args
, &
_strbuf
);
putc
(
'\0'
, &
_strbuf
);
return
(
str
);
}