1QECVT(3) Linux Programmer's Manual QECVT(3)
2
3
4
6 qecvt, qfcvt, qgcvt - convert a floating-point number to a string
7
9 #include <stdlib.h>
10
11 char *qecvt(long double number, int ndigits, int *restrict decpt,
12 int *restrict sign);
13 char *qfcvt(long double number, int ndigits, int *restrict decpt,
14 int *restrict sign);
15 char *qgcvt(long double number, int ndigit, char *buf);
16
17 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
18
19 qecvt(), qfcvt(), qgcvt():
20 Since glibc 2.19:
21 _DEFAULT_SOURCE
22 In glibc up to and including 2.19:
23 _SVID_SOURCE
24
26 The functions qecvt(), qfcvt(), and qgcvt() are identical to ecvt(3),
27 fcvt(3), and gcvt(3) respectively, except that they use a long double
28 argument number. See ecvt(3) and gcvt(3).
29
31 For an explanation of the terms used in this section, see at‐
32 tributes(7).
33
34 ┌───────────────────────────────┬───────────────┬──────────────────────┐
35 │Interface │ Attribute │ Value │
36 ├───────────────────────────────┼───────────────┼──────────────────────┤
37 │qecvt() │ Thread safety │ MT-Unsafe race:qecvt │
38 ├───────────────────────────────┼───────────────┼──────────────────────┤
39 │qfcvt() │ Thread safety │ MT-Unsafe race:qfcvt │
40 ├───────────────────────────────┼───────────────┼──────────────────────┤
41 │qgcvt() │ Thread safety │ MT-Safe │
42 └───────────────────────────────┴───────────────┴──────────────────────┘
43
45 SVr4. Not seen in most common UNIX implementations, but occurs in
46 SunOS. Supported by glibc.
47
49 These functions are obsolete. Instead, snprintf(3) is recommended.
50
52 ecvt(3), ecvt_r(3), gcvt(3), sprintf(3)
53
55 This page is part of release 5.13 of the Linux man-pages project. A
56 description of the project, information about reporting bugs, and the
57 latest version of this page, can be found at
58 https://www.kernel.org/doc/man-pages/.
59
60
61
62GNU 2021-03-22 QECVT(3)