]>
Commit | Line | Data |
---|---|---|
1 | .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl> | |
2 | .\" | |
3 | .\" %%%LICENSE_START(VERBATIM) | |
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. | |
12 | .\" | |
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. | |
20 | .\" | |
21 | .\" Formatted or processed versions of this manual, if unaccompanied by | |
22 | .\" the source, must acknowledge the copyright and authors of this work. | |
23 | .\" %%%LICENSE_END | |
24 | .\" | |
25 | .\" This replaces an earlier man page written by Walter Harms | |
26 | .\" <walter.harms@informatik.uni-oldenburg.de>. | |
27 | .\" | |
28 | .TH QECVT 3 2016-03-15 "GNU" "Linux Programmer's Manual" | |
29 | .SH NAME | |
30 | qecvt, qfcvt, qgcvt \- convert a floating-point number to a string | |
31 | .SH SYNOPSIS | |
32 | .B #include <stdlib.h> | |
33 | .PP | |
34 | .BI "char *qecvt(long double " number ", int " ndigits ", int *" decpt , | |
35 | .BI "int *" sign ); | |
36 | .PP | |
37 | .BI "char *qfcvt(long double " number ", int " ndigits ", int *" decpt , | |
38 | .BI "int *" sign ); | |
39 | .PP | |
40 | .BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf ); | |
41 | .PP | |
42 | .in -4n | |
43 | Feature Test Macro Requirements for glibc (see | |
44 | .BR feature_test_macros (7)): | |
45 | .in | |
46 | .PP | |
47 | .ad l | |
48 | .BR qecvt (), | |
49 | .BR qfcvt (), | |
50 | .BR qgcvt (): | |
51 | _SVID_SOURCE | |
52 | .ad b | |
53 | .\" FIXME . The full FTM picture looks to have be something like the | |
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 | |
60 | .\" _SVID_SOURCE || (_XOPEN_SOURCE >= 500 || | |
61 | .\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) && | |
62 | .\" ! (_POSIX_C_SOURCE >= 200809L)) | |
63 | .\" Before glibc 2.10: | |
64 | .\" _SVID_SOURCE || _XOPEN_SOURCE >= 500 || | |
65 | .\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) | |
66 | .SH DESCRIPTION | |
67 | The functions | |
68 | .BR qecvt (), | |
69 | .BR qfcvt (), | |
70 | and | |
71 | .BR qgcvt () | |
72 | are identical to | |
73 | .BR ecvt (3), | |
74 | .BR fcvt (3), | |
75 | and | |
76 | .BR gcvt (3) | |
77 | respectively, except that they use a | |
78 | .I "long double" | |
79 | argument | |
80 | .IR number . | |
81 | See | |
82 | .BR ecvt (3) | |
83 | and | |
84 | .BR gcvt (3). | |
85 | .SH ATTRIBUTES | |
86 | For an explanation of the terms used in this section, see | |
87 | .BR attributes (7). | |
88 | .TS | |
89 | allbox; | |
90 | lb lb lb | |
91 | l l l. | |
92 | Interface Attribute Value | |
93 | T{ | |
94 | .BR qecvt () | |
95 | T} Thread safety MT-Unsafe race:qecvt | |
96 | T{ | |
97 | .BR qfcvt () | |
98 | T} Thread safety MT-Unsafe race:qfcvt | |
99 | T{ | |
100 | .BR qgcvt () | |
101 | T} Thread safety MT-Safe | |
102 | .TE | |
103 | .SH CONFORMING TO | |
104 | SVr4. | |
105 | Not seen in most common UNIX implementations, | |
106 | but occurs in SunOS. | |
107 | .\" Not supported by libc4 and libc5. | |
108 | Supported by glibc. | |
109 | .SH NOTES | |
110 | These functions are obsolete. | |
111 | Instead, | |
112 | .BR snprintf (3) | |
113 | is recommended. | |
114 | .SH SEE ALSO | |
115 | .BR ecvt (3), | |
116 | .BR ecvt_r (3), | |
117 | .BR gcvt (3), | |
118 | .BR sprintf (3) |