sprintf.c (dc36d6f9bb1753f3808552f3afd30eda9a7b206a) | sprintf.c (e55512504d0178983978d64d67eed1cc85826523) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Chris Torek. --- 29 unchanged lines hidden (view full) --- 38 */ 39 40#include <stdio.h> 41#include <stdarg.h> 42#include <limits.h> 43#include "local.h" 44#include "xlocale_private.h" 45 | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Chris Torek. --- 29 unchanged lines hidden (view full) --- 38 */ 39 40#include <stdio.h> 41#include <stdarg.h> 42#include <limits.h> 43#include "local.h" 44#include "xlocale_private.h" 45 |
46#undef sprintf /* _FORTIFY_SOURCE */ 47 |
|
46int 47sprintf(char * __restrict str, char const * __restrict fmt, ...) 48{ 49 int ret; 50 va_list ap; 51 52 va_start(ap, fmt); 53 ret = vsprintf(str, fmt, ap); --- 16 unchanged lines hidden --- | 48int 49sprintf(char * __restrict str, char const * __restrict fmt, ...) 50{ 51 int ret; 52 va_list ap; 53 54 va_start(ap, fmt); 55 ret = vsprintf(str, fmt, ap); --- 16 unchanged lines hidden --- |