modern syntax for asgops & inits cause Donn's latest ccom rejects the old.
[unix-history] / usr / src / lib / libc / stdio / sprintf.c
CommitLineData
2ce81398
DS
1#if defined(LIBC_SCCS) && !defined(lint)
2static char sccsid[] = "@(#)sprintf.c 5.2 (Berkeley) %G%";
3#endif LIBC_SCCS and not lint
b8f253e8 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}