mountlist: Use Linux code on Android.
[gnulib.git] / lib / c-vasnprintf.c
blob887e1dc0a4422b6dcc225d4db4d67bd9b2090d11
1 /* Formatted output to strings in C locale.
2 Copyright (C) 2009-2019 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 #include <config.h>
19 #include <string.h>
21 #include "printf-parse.h"
23 #define VASNPRINTF c_vasnprintf
24 #define FCHAR_T char
25 #define DCHAR_T char
26 #define DIRECTIVE char_directive
27 #define DIRECTIVES char_directives
28 #define PRINTF_PARSE printf_parse
29 #define DCHAR_CPY memcpy
30 #define DCHAR_SET memset
31 #define DCHAR_IS_TCHAR 1
32 #define TCHAR_T char
34 #define NEED_PRINTF_DOUBLE 1
35 #define NEED_PRINTF_LONG_DOUBLE 1
36 #define decimal_point_char_defined 1
37 static char
38 decimal_point_char (void)
40 return '.';
43 #include "vasnprintf.c"