one too many levels of indirection (from ks@purdue)
[unix-history] / usr / src / lib / libc / stdio / sprintf.c
CommitLineData
b8f253e8
KM
1#ifndef lint
2static char sccsid[] = "@(#)sprintf.c 5.1 (Berkeley) %G%";
3#endif not lint
4
a156cccf
BJ
5#include <stdio.h>
6
7char *sprintf(str, fmt, args)
8char *str, *fmt;
9{
41e01b3e 10 FILE _strbuf;
a156cccf
BJ
11
12 _strbuf._flag = _IOWRT+_IOSTRG;
13 _strbuf._ptr = str;
14 _strbuf._cnt = 32767;
15 _doprnt(fmt, &args, &_strbuf);
16 putc('\0', &_strbuf);
17 return(str);
18}