]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/qecvt.3
Many pages: Use correct letter case in page titles (TH)
[thirdparty/man-pages.git] / man3 / qecvt.3
CommitLineData
fea681da
MK
1.\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
2.\"
5fbde956 3.\" SPDX-License-Identifier: Linux-man-pages-copyleft
fea681da
MK
4.\"
5.\" This replaces an earlier man page written by Walter Harms
6.\" <walter.harms@informatik.uni-oldenburg.de>.
7.\"
4c1c5274 8.TH qecvt 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
9.SH NAME
10qecvt, qfcvt, qgcvt \- convert a floating-point number to a string
ca3b0457
AC
11.SH LIBRARY
12Standard C library
8fc3b2cf 13.RI ( libc ", " \-lc )
fea681da 14.SH SYNOPSIS
15d65653 15.nf
fea681da 16.B #include <stdlib.h>
68e4db0a 17.PP
62c21b3a
AC
18.BI "[[deprecated]] char *qecvt(long double " number ", int " ndigits ,
19.BI " int *restrict " decpt ", int *restrict " sign );
20.BI "[[deprecated]] char *qfcvt(long double " number ", int " ndigits ,
21.BI " int *restrict " decpt ", int *restrict " sign );
22.BI "[[deprecated]] char *qgcvt(long double " number ", int " ndigit ", char *" buf );
15d65653 23.fi
68e4db0a 24.PP
d39ad78f 25.RS -4
cc4615cc
MK
26Feature Test Macro Requirements for glibc (see
27.BR feature_test_macros (7)):
d39ad78f 28.RE
68e4db0a 29.PP
cc4615cc
MK
30.BR qecvt (),
31.BR qfcvt (),
32.BR qgcvt ():
b1a4a246
MK
33.nf
34 Since glibc 2.19:
35 _DEFAULT_SOURCE
36 In glibc up to and including 2.19:
37 _SVID_SOURCE
38.fi
16fe373c 39.\" FIXME . The full FTM picture looks to have been something like the
9ac2ee45
MK
40.\" following mess:
41.\" glibc 2.20 onward
42.\" _DEFAULT_SOURCE
43.\" glibc 2.18 to glibc 2.19
44.\" _BSD_SOURCE || _SVID_SOURCE
45.\" glibc 2.10 to glibc 2.17
e9f22b0a
MK
46.\" _SVID_SOURCE || (_XOPEN_SOURCE >= 500 ||
47.\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) &&
b0da7b8b 48.\" ! (_POSIX_C_SOURCE >= 200809L))
9ac2ee45
MK
49.\" Before glibc 2.10:
50.\" _SVID_SOURCE || _XOPEN_SOURCE >= 500 ||
51.\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
fea681da
MK
52.SH DESCRIPTION
53The functions
e511ffb6 54.BR qecvt (),
9af134cd 55.BR qfcvt (),
fea681da 56and
e511ffb6 57.BR qgcvt ()
fea681da 58are identical to
fb186734 59.BR ecvt (3),
9af134cd 60.BR fcvt (3),
fea681da 61and
fb186734 62.BR gcvt (3)
fea681da 63respectively, except that they use a
9ff08aad 64.I "long double"
fea681da
MK
65argument
66.IR number .
67See
68.BR ecvt (3)
69and
70.BR gcvt (3).
8744c6c2 71.SH ATTRIBUTES
57275d24
PH
72For an explanation of the terms used in this section, see
73.BR attributes (7).
c466875e
MK
74.ad l
75.nh
57275d24
PH
76.TS
77allbox;
c466875e 78lbx lb lb
57275d24
PH
79l l l.
80Interface Attribute Value
81T{
7f7777ba
MS
82.BR qecvt ()
83T} Thread safety MT-Unsafe race:qecvt
84T{
8744c6c2 85.BR qfcvt ()
7f7777ba 86T} Thread safety MT-Unsafe race:qfcvt
57275d24 87T{
8744c6c2 88.BR qgcvt ()
57275d24
PH
89T} Thread safety MT-Safe
90.TE
c466875e
MK
91.hy
92.ad
93.sp 1
3113c7f3 94.SH STANDARDS
68e1685c 95SVr4.
008f1ecc 96Not seen in most common UNIX implementations,
c13182ef 97but occurs in SunOS.
875aad48 98.\" Not supported by libc4 and libc5.
fea681da 99Supported by glibc.
2b2581ee
MK
100.SH NOTES
101These functions are obsolete.
102Instead,
9ac2ee45 103.BR snprintf (3)
2b2581ee 104is recommended.
47297adb 105.SH SEE ALSO
fea681da
MK
106.BR ecvt (3),
107.BR ecvt_r (3),
108.BR gcvt (3),
109.BR sprintf (3)