Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/stdio/sprintf.c
Show All 35 Lines | |||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
*/ | */ | ||||
#if defined(LIBC_SCCS) && !defined(lint) | #if defined(LIBC_SCCS) && !defined(lint) | ||||
static char sccsid[] = "@(#)sprintf.c 8.1 (Berkeley) 6/4/93"; | static char sccsid[] = "@(#)sprintf.c 8.1 (Berkeley) 6/4/93"; | ||||
#endif /* LIBC_SCCS and not lint */ | #endif /* LIBC_SCCS and not lint */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
imp: This stuff is long gone... rebase needed? | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdarg.h> | #include <stdarg.h> | ||||
#include <limits.h> | #include <limits.h> | ||||
#include "local.h" | #include "local.h" | ||||
#include "xlocale_private.h" | #include "xlocale_private.h" | ||||
int | int | ||||
sprintf(char * __restrict str, char const * __restrict fmt, ...) | (sprintf)(char * __restrict str, char const * __restrict fmt, ...) | ||||
{ | { | ||||
int ret; | int ret; | ||||
va_list ap; | va_list ap; | ||||
va_start(ap, fmt); | va_start(ap, fmt); | ||||
ret = vsprintf(str, fmt, ap); | ret = vsprintf(str, fmt, ap); | ||||
va_end(ap); | va_end(ap); | ||||
return (ret); | return (ret); | ||||
Show All 14 Lines |
This stuff is long gone... rebase needed?