2004-11-03 13:51:07 +00:00
|
|
|
.\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to make and distribute verbatim copies of this
|
|
|
|
.\" manual provided the copyright notice and this permission notice are
|
|
|
|
.\" preserved on all copies.
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to copy and distribute modified versions of this
|
|
|
|
.\" manual under the conditions for verbatim copying, provided that the
|
|
|
|
.\" entire resulting derived work is distributed under the terms of a
|
|
|
|
.\" permission notice identical to this one.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Since the Linux kernel and libraries are constantly changing, this
|
|
|
|
.\" manual page may be incorrect or out-of-date. The author(s) assume no
|
|
|
|
.\" responsibility for errors or omissions, or for damages resulting from
|
|
|
|
.\" the use of the information contained herein. The author(s) may not
|
|
|
|
.\" have taken the same level of care in the production of this manual,
|
|
|
|
.\" which is licensed free of charge, as they might when working
|
|
|
|
.\" professionally.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Formatted or processed versions of this manual, if unaccompanied by
|
|
|
|
.\" the source, must acknowledge the copyright and authors of this work.
|
|
|
|
.\"
|
|
|
|
.\" This replaces an earlier man page written by Walter Harms
|
|
|
|
.\" <walter.harms@informatik.uni-oldenburg.de>.
|
|
|
|
.\"
|
2007-07-08 12:11:40 +00:00
|
|
|
.TH QECVT 3 2007-07-26 "GNU" "Linux Programmer's Manual"
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH NAME
|
|
|
|
qecvt, qfcvt, qgcvt \- convert a floating-point number to a string
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B #include <stdlib.h>
|
|
|
|
.sp
|
|
|
|
.BI "char *qecvt(long double " number ", int " ndigits ", int *" decpt ,
|
|
|
|
.BI "int *" sign );
|
|
|
|
.sp
|
|
|
|
.BI "char *qfcvt(long double " number ", int " ndigits ", int *" decpt ,
|
|
|
|
.BI "int *" sign );
|
|
|
|
.sp
|
|
|
|
.BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf );
|
2007-07-08 12:11:40 +00:00
|
|
|
.sp
|
|
|
|
.in -4n
|
|
|
|
Feature Test Macro Requirements for glibc (see
|
|
|
|
.BR feature_test_macros (7)):
|
|
|
|
.in
|
|
|
|
.sp
|
2007-07-18 20:15:25 +00:00
|
|
|
.ad l
|
2007-07-08 12:11:40 +00:00
|
|
|
.BR qecvt (),
|
|
|
|
.BR qfcvt (),
|
|
|
|
.BR qgcvt ():
|
|
|
|
_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
2007-07-18 20:15:25 +00:00
|
|
|
.ad b
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
The functions
|
2005-10-19 06:54:38 +00:00
|
|
|
.BR qecvt (),
|
|
|
|
.BR qfcvt ()
|
2004-11-03 13:51:07 +00:00
|
|
|
and
|
2005-10-19 06:54:38 +00:00
|
|
|
.BR qgcvt ()
|
2004-11-03 13:51:07 +00:00
|
|
|
are identical to
|
2007-05-12 00:30:29 +00:00
|
|
|
.BR ecvt (3),
|
|
|
|
.BR fcvt (3)
|
2004-11-03 13:51:07 +00:00
|
|
|
and
|
2007-05-12 00:30:29 +00:00
|
|
|
.BR gcvt (3)
|
2004-11-03 13:51:07 +00:00
|
|
|
respectively, except that they use a
|
2006-02-09 20:24:53 +00:00
|
|
|
.I "long double"
|
2004-11-03 13:51:07 +00:00
|
|
|
argument
|
|
|
|
.IR number .
|
|
|
|
See
|
|
|
|
.BR ecvt (3)
|
|
|
|
and
|
|
|
|
.BR gcvt (3).
|
|
|
|
.SH "CONFORMING TO"
|
2006-08-03 13:57:30 +00:00
|
|
|
SVr4.
|
|
|
|
Not seen in most common Unix implementations,
|
2007-04-12 22:42:49 +00:00
|
|
|
but occurs in SunOS.
|
|
|
|
Not supported by libc4 and libc5.
|
2004-11-03 13:51:07 +00:00
|
|
|
Supported by glibc.
|
2007-05-19 04:30:20 +00:00
|
|
|
.SH NOTES
|
|
|
|
These functions are obsolete.
|
|
|
|
Instead,
|
|
|
|
.BR sprintf (3)
|
|
|
|
is recommended.
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR ecvt (3),
|
|
|
|
.BR ecvt_r (3),
|
|
|
|
.BR gcvt (3),
|
|
|
|
.BR sprintf (3)
|