1qecvt(3) Library Functions Manual qecvt(3)
2
3
4
6 qecvt, qfcvt, qgcvt - convert a floating-point number to a string
7
9 Standard C library (libc, -lc)
10
12 #include <stdlib.h>
13
14 [[deprecated]] char *qecvt(long double number, int ndigits,
15 int *restrict decpt, int *restrict sign);
16 [[deprecated]] char *qfcvt(long double number, int ndigits,
17 int *restrict decpt, int *restrict sign);
18 [[deprecated]] char *qgcvt(long double number, int ndigit, char *buf);
19
20 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
21
22 qecvt(), qfcvt(), qgcvt():
23 Since glibc 2.19:
24 _DEFAULT_SOURCE
25 In glibc up to and including 2.19:
26 _SVID_SOURCE
27
29 The functions qecvt(), qfcvt(), and qgcvt() are identical to ecvt(3),
30 fcvt(3), and gcvt(3) respectively, except that they use a long double
31 argument number. See ecvt(3) and gcvt(3).
32
34 For an explanation of the terms used in this section, see at‐
35 tributes(7).
36
37 ┌───────────────────────────────┬───────────────┬──────────────────────┐
38 │Interface │ Attribute │ Value │
39 ├───────────────────────────────┼───────────────┼──────────────────────┤
40 │qecvt() │ Thread safety │ MT-Unsafe race:qecvt │
41 ├───────────────────────────────┼───────────────┼──────────────────────┤
42 │qfcvt() │ Thread safety │ MT-Unsafe race:qfcvt │
43 ├───────────────────────────────┼───────────────┼──────────────────────┤
44 │qgcvt() │ Thread safety │ MT-Safe │
45 └───────────────────────────────┴───────────────┴──────────────────────┘
46
48 None.
49
51 SVr4, SunOS, GNU.
52
53 These functions are obsolete. Instead, snprintf(3) is recommended.
54
56 ecvt(3), ecvt_r(3), gcvt(3), sprintf(3)
57
58
59
60Linux man-pages 6.05 2023-07-20 qecvt(3)