]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/qecvt.3
Added/updated glibc feature test macro requirements
[thirdparty/man-pages.git] / man3 / qecvt.3
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.
11 .\"
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.
19 .\"
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 .\"
26 .TH QECVT 3 2007-07-26 "GNU" "Linux Programmer's Manual"
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 );
39 .sp
40 .in -4n
41 Feature Test Macro Requirements for glibc (see
42 .BR feature_test_macros (7)):
43 .in
44 .sp
45 .BR qecvt (),
46 .BR qfcvt (),
47 .BR qgcvt ():
48 .br
49 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
50 .SH DESCRIPTION
51 The functions
52 .BR qecvt (),
53 .BR qfcvt ()
54 and
55 .BR qgcvt ()
56 are identical to
57 .BR ecvt (3),
58 .BR fcvt (3)
59 and
60 .BR gcvt (3)
61 respectively, except that they use a
62 .I "long double"
63 argument
64 .IR number .
65 See
66 .BR ecvt (3)
67 and
68 .BR gcvt (3).
69 .SH "CONFORMING TO"
70 SVr4.
71 Not seen in most common Unix implementations,
72 but occurs in SunOS.
73 Not supported by libc4 and libc5.
74 Supported by glibc.
75 .SH NOTES
76 These functions are obsolete.
77 Instead,
78 .BR sprintf (3)
79 is recommended.
80 .SH "SEE ALSO"
81 .BR ecvt (3),
82 .BR ecvt_r (3),
83 .BR gcvt (3),
84 .BR sprintf (3)