]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/qecvt.3
prctl.2: Clarify the unsupported hardware case of EINVAL
[thirdparty/man-pages.git] / man3 / qecvt.3
CommitLineData
fea681da
MK
1.\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
2.\"
93015253 3.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
c13182ef 12.\"
fea681da
MK
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
c13182ef 20.\"
fea681da
MK
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 23.\" %%%LICENSE_END
fea681da
MK
24.\"
25.\" This replaces an earlier man page written by Walter Harms
26.\" <walter.harms@informatik.uni-oldenburg.de>.
27.\"
97986708 28.TH QECVT 3 2016-03-15 "GNU" "Linux Programmer's Manual"
fea681da
MK
29.SH NAME
30qecvt, qfcvt, qgcvt \- convert a floating-point number to a string
31.SH SYNOPSIS
32.B #include <stdlib.h>
68e4db0a 33.PP
fea681da
MK
34.BI "char *qecvt(long double " number ", int " ndigits ", int *" decpt ,
35.BI "int *" sign );
68e4db0a 36.PP
fea681da
MK
37.BI "char *qfcvt(long double " number ", int " ndigits ", int *" decpt ,
38.BI "int *" sign );
68e4db0a 39.PP
fea681da 40.BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf );
68e4db0a 41.PP
cc4615cc
MK
42.in -4n
43Feature Test Macro Requirements for glibc (see
44.BR feature_test_macros (7)):
45.in
68e4db0a 46.PP
7fa092c8 47.ad l
cc4615cc
MK
48.BR qecvt (),
49.BR qfcvt (),
50.BR qgcvt ():
32caaf6e 51_SVID_SOURCE
7fa092c8 52.ad b
bea08fec 53.\" FIXME . The full FTM picture looks to have be something like the
9ac2ee45
MK
54.\" following mess:
55.\" glibc 2.20 onward
56.\" _DEFAULT_SOURCE
57.\" glibc 2.18 to glibc 2.19
58.\" _BSD_SOURCE || _SVID_SOURCE
59.\" glibc 2.10 to glibc 2.17
e9f22b0a
MK
60.\" _SVID_SOURCE || (_XOPEN_SOURCE >= 500 ||
61.\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) &&
b0da7b8b 62.\" ! (_POSIX_C_SOURCE >= 200809L))
9ac2ee45
MK
63.\" Before glibc 2.10:
64.\" _SVID_SOURCE || _XOPEN_SOURCE >= 500 ||
65.\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
fea681da
MK
66.SH DESCRIPTION
67The functions
e511ffb6 68.BR qecvt (),
9af134cd 69.BR qfcvt (),
fea681da 70and
e511ffb6 71.BR qgcvt ()
fea681da 72are identical to
fb186734 73.BR ecvt (3),
9af134cd 74.BR fcvt (3),
fea681da 75and
fb186734 76.BR gcvt (3)
fea681da 77respectively, except that they use a
9ff08aad 78.I "long double"
fea681da
MK
79argument
80.IR number .
81See
82.BR ecvt (3)
83and
84.BR gcvt (3).
8744c6c2 85.SH ATTRIBUTES
57275d24
PH
86For an explanation of the terms used in this section, see
87.BR attributes (7).
88.TS
89allbox;
7f7777ba 90lb lb lb
57275d24
PH
91l l l.
92Interface Attribute Value
93T{
7f7777ba
MS
94.BR qecvt ()
95T} Thread safety MT-Unsafe race:qecvt
96T{
8744c6c2 97.BR qfcvt ()
7f7777ba 98T} Thread safety MT-Unsafe race:qfcvt
57275d24 99T{
8744c6c2 100.BR qgcvt ()
57275d24
PH
101T} Thread safety MT-Safe
102.TE
47297adb 103.SH CONFORMING TO
68e1685c 104SVr4.
008f1ecc 105Not seen in most common UNIX implementations,
c13182ef 106but occurs in SunOS.
875aad48 107.\" Not supported by libc4 and libc5.
fea681da 108Supported by glibc.
2b2581ee
MK
109.SH NOTES
110These functions are obsolete.
111Instead,
9ac2ee45 112.BR snprintf (3)
2b2581ee 113is recommended.
47297adb 114.SH SEE ALSO
fea681da
MK
115.BR ecvt (3),
116.BR ecvt_r (3),
117.BR gcvt (3),
118.BR sprintf (3)