ECVT_R


HOME

ECVT_R

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
NOTES
SEE ALSO
COLOPHON

NAME

ecvt_r, fcvt_r, qecvt_r, qfcvt_r − convert a floating-point number to a string

SYNOPSIS

#include <stdlib.h>

int ecvt_r(double number, int ndigits, int *decpt,
int *
sign, char *buf, size_t len);

int fcvt_r(double number, int ndigits, int *decpt,
int *
sign, char *buf, size_t len);

int qecvt_r(long double number, int ndigits, int *decpt,
int *
sign, char *buf, size_t len);

int qfcvt_r(long double number, int ndigits, int *decpt,
int *
sign, char *buf, size_t len);

Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

ecvt_r(), fcvt_r(), qecvt_r(), qfcvt_r():

_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE >= 500

DESCRIPTION

The functions ecvt_r(), fcvt_r(), qecvt_r() and qfcvt_r() are identical to ecvt(3), fcvt(3), qecvt(3) and qfcvt(3), respectively, except that they do not return their result in a static buffer, but instead use the supplied buf of size len. See ecvt(3) and qecvt(3).

RETURN VALUE

These functions return 0 on success, and −1 otherwise.

CONFORMING TO

These functions are GNU extensions.

NOTES

These functions are obsolete. Instead, sprintf(3) is recommended.

SEE ALSO

ecvt(3), qecvt(3), sprintf(3)

COLOPHON

This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.




More Linux Commands

manpages/mvinnwstr.3ncurses.html
mvinnwstr(3ncurses) - get a string of wchar_t characters fro
These routines return a string of wchar_t characters in wstr, extracted starting at the current cursor position in the named window. Attributes are stripped fro

manpages/XGetMotionEvents.3.html
XGetMotionEvents(3) - send events and pointer motion history
The XSendEvent function identifies the destination window, determines which clients should receive the specified events, and ignores any active grabs. This func

manpages/mq_open.3.html
mq_open.3 - mq_open(3) - open a message queue - Linux manual page.......
mq_open() creates a new POSIX message queue or opens an existing queue. The queue is identified by name. For details of the construction of name, see mq_overvie

manpages/gnutls_certificate_free_crls.3.html
gnutls_certificate_free_crls(3) - API function (Man Page)...
This function will delete all the CRLs associated with the given credentials. REPORTING BUGS Report bugs to &lt;bug-gnutls@gnu.org&gt;. GnuTLS home page: http://www.g

manpages/ExtUtils::Command.3pm.html
ExtUtils::Command(3pm) - utilities to replace common UNIX co
The module is used to replace common UNIX commands. In all cases the functions work from @ARGV rather than taking arguments. This makes them easier to deal with

manpages/Xvfb.1.html
Xvfb(1) - virtual framebuffer X server for X Version 11.....
Xvfb is an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory. The pr

manpages/gnutls_srp_set_client_credentials_function.3.html
gnutls_srp_set_client_credentials_function.3................
This function can be used to set a callback to retrieve the username and password for client SRP authentication. The callbacks function form is: int (*callback)

manpages/memory.n.html
memory(n) - Control Tcl memory debugging capabilities.......
The memory command gives the Tcl developer control of Tcls memory debugging capabilities. The memory command has several suboptions, which are described below.

manpages/XkbResizeKeyType.3.html
XkbResizeKeyType(3) - Change the number of levels in a key t
XkbResizeKeyType changes the type specified by xkb-&gt;map-&gt;types[type_ndx], and reallocates the symbols and actions bound to all keys that use the type, if necess

manpages/getw.3.html
getw(3) - input and output of words (ints) - Linux man page
getw() reads a word (that is, an int) from stream. Its provided for compatibility with SVr4. We recommend you use fread(3) instead. putw() writes the word w (th

manpages/aconnect.1.html
aconnect(1) - ALSA sequencer connection manager (Man Page)
aconnect is a utility to connect and disconnect two existing ports on ALSA sequencer system. The ports with the arbitrary subscription permission, such as creat

manpages/partx.8.html
partx(8) - tell the Linux kernel about the presence and numb
Given a device or disk-image, partx tries to parse the partition table and list its contents. It optionally adds or removes partitions. The disk argument is opt





We can't live, work or learn in freedom unless the software we use is free.