1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" This replaces an earlier man page written by Walter Harms
6 .\" <walter.harms@informatik.uni-oldenburg.de>.
8 .TH QECVT 3 2021-03-22 "Linux man-pages (unreleased)"
10 qecvt, qfcvt, qgcvt \- convert a floating-point number to a string
13 .RI ( libc ", " \-lc )
16 .B #include <stdlib.h>
18 .BI "char *qecvt(long double " number ", int " ndigits \
19 ", int *restrict " decpt ,
20 .BI " int *restrict " sign );
21 .BI "char *qfcvt(long double " number ", int " ndigits \
22 ", int *restrict " decpt ,
23 .BI " int *restrict " sign );
24 .BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf );
28 Feature Test Macro Requirements for glibc (see
29 .BR feature_test_macros (7)):
38 In glibc up to and including 2.19:
41 .\" FIXME . The full FTM picture looks to have been something like the
45 .\" glibc 2.18 to glibc 2.19
46 .\" _BSD_SOURCE || _SVID_SOURCE
47 .\" glibc 2.10 to glibc 2.17
48 .\" _SVID_SOURCE || (_XOPEN_SOURCE >= 500 ||
49 .\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) &&
50 .\" ! (_POSIX_C_SOURCE >= 200809L))
51 .\" Before glibc 2.10:
52 .\" _SVID_SOURCE || _XOPEN_SOURCE >= 500 ||
53 .\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
65 respectively, except that they use a
74 For an explanation of the terms used in this section, see
82 Interface Attribute Value
85 T} Thread safety MT-Unsafe race:qecvt
88 T} Thread safety MT-Unsafe race:qfcvt
91 T} Thread safety MT-Safe
98 Not seen in most common UNIX implementations,
100 .\" Not supported by libc4 and libc5.
103 These functions are obsolete.