1QECVT(3)                   Linux Programmer's Manual                  QECVT(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

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

ATTRIBUTES

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

CONFORMING TO

45       SVr4.  Not seen in most common  UNIX  implementations,  but  occurs  in
46       SunOS.  Supported by glibc.
47

NOTES

49       These functions are obsolete.  Instead, snprintf(3) is recommended.
50

SEE ALSO

52       ecvt(3), ecvt_r(3), gcvt(3), sprintf(3)
53

COLOPHON

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)
Impressum