1 /* Wrapper for argp_error and argp_failure. IEEE128 version.
2 Copyright (C) 2019-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19 #include <argp.h>
20 #include <libio/libioP.h>
21
22 void
___ieee128_argp_error(const struct argp_state * state,const char * fmt,...)23 ___ieee128_argp_error (const struct argp_state *state, const char *fmt, ...)
24 {
25 va_list ap;
26 va_start (ap, fmt);
27 __argp_error_internal (state, fmt, ap, PRINTF_LDBL_USES_FLOAT128);
28 va_end (ap);
29 }
strong_alias(___ieee128_argp_error,__argp_errorieee128)30 strong_alias (___ieee128_argp_error, __argp_errorieee128)
31
32 void
33 ___ieee128_argp_failure (const struct argp_state *state, int status,
34 int errnum, const char *fmt, ...)
35 {
36 va_list ap;
37 va_start (ap, fmt);
38 __argp_failure_internal (state, status, errnum, fmt, ap,
39 PRINTF_LDBL_USES_FLOAT128);
40 va_end (ap);
41 }
42 strong_alias (___ieee128_argp_failure, __argp_failureieee128)
43