]>
Commit | Line | Data |
---|---|---|
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 |
30 | qecvt, 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 |
43 | Feature 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 |
67 | The functions | |
e511ffb6 | 68 | .BR qecvt (), |
9af134cd | 69 | .BR qfcvt (), |
fea681da | 70 | and |
e511ffb6 | 71 | .BR qgcvt () |
fea681da | 72 | are identical to |
fb186734 | 73 | .BR ecvt (3), |
9af134cd | 74 | .BR fcvt (3), |
fea681da | 75 | and |
fb186734 | 76 | .BR gcvt (3) |
fea681da | 77 | respectively, except that they use a |
9ff08aad | 78 | .I "long double" |
fea681da MK |
79 | argument |
80 | .IR number . | |
81 | See | |
82 | .BR ecvt (3) | |
83 | and | |
84 | .BR gcvt (3). | |
8744c6c2 | 85 | .SH ATTRIBUTES |
57275d24 PH |
86 | For an explanation of the terms used in this section, see |
87 | .BR attributes (7). | |
88 | .TS | |
89 | allbox; | |
7f7777ba | 90 | lb lb lb |
57275d24 PH |
91 | l l l. |
92 | Interface Attribute Value | |
93 | T{ | |
7f7777ba MS |
94 | .BR qecvt () |
95 | T} Thread safety MT-Unsafe race:qecvt | |
96 | T{ | |
8744c6c2 | 97 | .BR qfcvt () |
7f7777ba | 98 | T} Thread safety MT-Unsafe race:qfcvt |
57275d24 | 99 | T{ |
8744c6c2 | 100 | .BR qgcvt () |
57275d24 PH |
101 | T} Thread safety MT-Safe |
102 | .TE | |
47297adb | 103 | .SH CONFORMING TO |
68e1685c | 104 | SVr4. |
008f1ecc | 105 | Not seen in most common UNIX implementations, |
c13182ef | 106 | but occurs in SunOS. |
875aad48 | 107 | .\" Not supported by libc4 and libc5. |
fea681da | 108 | Supported by glibc. |
2b2581ee MK |
109 | .SH NOTES |
110 | These functions are obsolete. | |
111 | Instead, | |
9ac2ee45 | 112 | .BR snprintf (3) |
2b2581ee | 113 | is 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) |