OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / qecvt.3
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  2014-03-11 "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 .sp
34 .BI "char *qecvt(long double " number ", int " ndigits ", int *" decpt ,
35 .BI "int *" sign );
36 .sp
37 .BI "char *qfcvt(long double " number ", int " ndigits ", int *" decpt ,
38 .BI "int *" sign );
39 .sp
40 .BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf );
41 .sp
42 .in -4n
43 Feature Test Macro Requirements for glibc (see
44 .BR feature_test_macros (7)):
45 .in
46 .sp
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 || _XOPEN_SOURCE >= 700))
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 .SS Multithreading (see pthreads(7))
87 The
88 .BR qecvt ()
89 and
90 .BR qfcvt ()
91 functions are not thread-safe.
92 .LP
93 The
94 .BR qgcvt ()
95 function is thread-safe.
96 .SH CONFORMING TO
97 SVr4.
98 Not seen in most common UNIX implementations,
99 but occurs in SunOS.
100 Not supported by libc4 and libc5.
101 Supported by glibc.
102 .SH NOTES
103 These functions are obsolete.
104 Instead,
105 .BR snprintf (3)
106 is recommended.
107 .SH SEE ALSO
108 .BR ecvt (3),
109 .BR ecvt_r (3),
110 .BR gcvt (3),
111 .BR sprintf (3)
112 .SH COLOPHON
113 This page is part of release 3.68 of the Linux
114 .I man-pages
115 project.
116 A description of the project,
117 information about reporting bugs,
118 and the latest version of this page,
119 can be found at
120 \%http://www.kernel.org/doc/man\-pages/.