* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)sprintf.c 5.7 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
sprintf(char *str
, char const *fmt
, ...)
sprintf(str
, fmt
, va_alist
)
f
._flags
= __SWR
| __SSTR
;
f
._bf
._base
= f
._p
= (unsigned char *)str
;
f
._bf
._size
= f
._w
= INT_MAX
;
ret
= vfprintf(&f
, fmt
, ap
);