1qecvt(3)                   Library Functions Manual                   qecvt(3)
2
3
4

NAME

6       qecvt, qfcvt, qgcvt - convert a floating-point number to a string
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

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

DESCRIPTION

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

ATTRIBUTES

34       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
35       tributes(7).
36
37       ┌───────────────────────────────┬───────────────┬──────────────────────┐
38Interface                      Attribute     Value                
39       ├───────────────────────────────┼───────────────┼──────────────────────┤
40qecvt()                        │ Thread safety │ MT-Unsafe race:qecvt │
41       ├───────────────────────────────┼───────────────┼──────────────────────┤
42qfcvt()                        │ Thread safety │ MT-Unsafe race:qfcvt │
43       ├───────────────────────────────┼───────────────┼──────────────────────┤
44qgcvt()                        │ Thread safety │ MT-Safe              │
45       └───────────────────────────────┴───────────────┴──────────────────────┘
46

STANDARDS

48       None.
49

HISTORY

51       SVr4, SunOS, GNU.
52
53       These functions are obsolete.  Instead, snprintf(3) is recommended.
54

SEE ALSO

56       ecvt(3), ecvt_r(3), gcvt(3), sprintf(3)
57
58
59
60Linux man-pages 6.04              2023-03-30                          qecvt(3)
Impressum