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 *decpt, int *sign);
12
13 char *qfcvt(long double number, int ndigits, int *decpt, int *sign);
14
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(): _SVID_SOURCE
20
22 The functions qecvt(), qfcvt(), and qgcvt() are identical to ecvt(3),
23 fcvt(3), and gcvt(3) respectively, except that they use a long double
24 argument number. See ecvt(3) and gcvt(3).
25
27 For an explanation of the terms used in this section, see
28 attributes(7).
29
30 ┌──────────┬───────────────┬──────────────────────┐
31 │Interface │ Attribute │ Value │
32 ├──────────┼───────────────┼──────────────────────┤
33 │qecvt() │ Thread safety │ MT-Unsafe race:qecvt │
34 ├──────────┼───────────────┼──────────────────────┤
35 │qfcvt() │ Thread safety │ MT-Unsafe race:qfcvt │
36 ├──────────┼───────────────┼──────────────────────┤
37 │qgcvt() │ Thread safety │ MT-Safe │
38 └──────────┴───────────────┴──────────────────────┘
40 SVr4. Not seen in most common UNIX implementations, but occurs in
41 SunOS. Supported by glibc.
42
44 These functions are obsolete. Instead, snprintf(3) is recommended.
45
47 ecvt(3), ecvt_r(3), gcvt(3), sprintf(3)
48
50 This page is part of release 5.07 of the Linux man-pages project. A
51 description of the project, information about reporting bugs, and the
52 latest version of this page, can be found at
53 https://www.kernel.org/doc/man-pages/.
54
55
56
57GNU 2016-03-15 QECVT(3)