snprintf.c (dc36d6f9bb1753f3808552f3afd30eda9a7b206a) snprintf.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 * Copyright (c) 2011 The FreeBSD Foundation
8 *

--- 31 unchanged lines hidden (view full) ---

40#include <errno.h>
41#include <limits.h>
42#include <stdio.h>
43#include <stdarg.h>
44#include "xlocale_private.h"
45
46#include "local.h"
47
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 * Copyright (c) 2011 The FreeBSD Foundation
8 *

--- 31 unchanged lines hidden (view full) ---

40#include <errno.h>
41#include <limits.h>
42#include <stdio.h>
43#include <stdarg.h>
44#include "xlocale_private.h"
45
46#include "local.h"
47
48#undef snprintf /* _FORTIFY_SOURCE */
49
48int
49snprintf(char * __restrict str, size_t n, char const * __restrict fmt, ...)
50{
51 size_t on;
52 int ret;
53 va_list ap;
54 FILE f = FAKE_FILE;
55

--- 46 unchanged lines hidden ---
50int
51snprintf(char * __restrict str, size_t n, char const * __restrict fmt, ...)
52{
53 size_t on;
54 int ret;
55 va_list ap;
56 FILE f = FAKE_FILE;
57

--- 46 unchanged lines hidden ---