]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl> |
2 | .\" | |
3 | .\" Permission is granted to make and distribute verbatim copies of this | |
4 | .\" manual provided the copyright notice and this permission notice are | |
5 | .\" preserved on all copies. | |
6 | .\" | |
7 | .\" Permission is granted to copy and distribute modified versions of this | |
8 | .\" manual under the conditions for verbatim copying, provided that the | |
9 | .\" entire resulting derived work is distributed under the terms of a | |
10 | .\" permission notice identical to this one. | |
c13182ef | 11 | .\" |
fea681da MK |
12 | .\" Since the Linux kernel and libraries are constantly changing, this |
13 | .\" manual page may be incorrect or out-of-date. The author(s) assume no | |
14 | .\" responsibility for errors or omissions, or for damages resulting from | |
15 | .\" the use of the information contained herein. The author(s) may not | |
16 | .\" have taken the same level of care in the production of this manual, | |
17 | .\" which is licensed free of charge, as they might when working | |
18 | .\" professionally. | |
c13182ef | 19 | .\" |
fea681da MK |
20 | .\" Formatted or processed versions of this manual, if unaccompanied by |
21 | .\" the source, must acknowledge the copyright and authors of this work. | |
22 | .\" | |
23 | .\" This replaces an earlier man page written by Walter Harms | |
24 | .\" <walter.harms@informatik.uni-oldenburg.de>. | |
25 | .\" | |
50831f9b | 26 | .TH QECVT 3 2010-09-20 "GNU" "Linux Programmer's Manual" |
fea681da MK |
27 | .SH NAME |
28 | qecvt, qfcvt, qgcvt \- convert a floating-point number to a string | |
29 | .SH SYNOPSIS | |
30 | .B #include <stdlib.h> | |
31 | .sp | |
32 | .BI "char *qecvt(long double " number ", int " ndigits ", int *" decpt , | |
33 | .BI "int *" sign ); | |
34 | .sp | |
35 | .BI "char *qfcvt(long double " number ", int " ndigits ", int *" decpt , | |
36 | .BI "int *" sign ); | |
37 | .sp | |
38 | .BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf ); | |
cc4615cc MK |
39 | .sp |
40 | .in -4n | |
41 | Feature Test Macro Requirements for glibc (see | |
42 | .BR feature_test_macros (7)): | |
43 | .in | |
44 | .sp | |
7fa092c8 | 45 | .ad l |
cc4615cc MK |
46 | .BR qecvt (), |
47 | .BR qfcvt (), | |
48 | .BR qgcvt (): | |
32caaf6e | 49 | _SVID_SOURCE |
7fa092c8 | 50 | .ad b |
fea681da MK |
51 | .SH DESCRIPTION |
52 | The functions | |
e511ffb6 MK |
53 | .BR qecvt (), |
54 | .BR qfcvt () | |
fea681da | 55 | and |
e511ffb6 | 56 | .BR qgcvt () |
fea681da | 57 | are identical to |
fb186734 MK |
58 | .BR ecvt (3), |
59 | .BR fcvt (3) | |
fea681da | 60 | and |
fb186734 | 61 | .BR gcvt (3) |
fea681da | 62 | respectively, except that they use a |
9ff08aad | 63 | .I "long double" |
fea681da MK |
64 | argument |
65 | .IR number . | |
66 | See | |
67 | .BR ecvt (3) | |
68 | and | |
69 | .BR gcvt (3). | |
47297adb | 70 | .SH CONFORMING TO |
68e1685c | 71 | SVr4. |
008f1ecc | 72 | Not seen in most common UNIX implementations, |
c13182ef MK |
73 | but occurs in SunOS. |
74 | Not supported by libc4 and libc5. | |
fea681da | 75 | Supported by glibc. |
2b2581ee MK |
76 | .SH NOTES |
77 | These functions are obsolete. | |
78 | Instead, | |
79 | .BR sprintf (3) | |
80 | is recommended. | |
47297adb | 81 | .SH SEE ALSO |
fea681da MK |
82 | .BR ecvt (3), |
83 | .BR ecvt_r (3), | |
84 | .BR gcvt (3), | |
85 | .BR sprintf (3) |