vsnprintf.c (dc36d6f9bb1753f3808552f3afd30eda9a7b206a) vsnprintf.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 <errno.h>
41#include <limits.h>
42#include <stdio.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 <errno.h>
41#include <limits.h>
42#include <stdio.h>
43#include "local.h"
44#include "xlocale_private.h"
45
46#undef vsnprintf /* _FORTIFY_SOURCE */
47
46int
47vsnprintf_l(char * __restrict str, size_t n, locale_t locale,
48 const char * __restrict fmt, __va_list ap)
49{
50 size_t on;
51 int ret;
52 char dummy[2];
53 FILE f = FAKE_FILE;

--- 31 unchanged lines hidden ---
48int
49vsnprintf_l(char * __restrict str, size_t n, locale_t locale,
50 const char * __restrict fmt, __va_list ap)
51{
52 size_t on;
53 int ret;
54 char dummy[2];
55 FILE f = FAKE_FILE;

--- 31 unchanged lines hidden ---