ecvt_r(3) Library Functions Manual ecvt_r(3) ecvt_r, fcvt_r, qecvt_r, qfcvt_r - C (libc, -lc) #include [[deprecated]] int ecvt_r(double number, int ndigits, int *restrict decpt, int *restrict sign, char *restrict buf, size_t size); [[deprecated]] int fcvt_r(double number, int ndigits, int *restrict decpt, int *restrict sign, char *restrict buf, size_t size); [[deprecated]] int qecvt_r(long double number, int ndigits, int *restrict decpt, int *restrict sign, char *restrict buf, size_t size); [[deprecated]] int qfcvt_r(long double number, int ndigits, int *restrict decpt, int *restrict sign, char *restrict buf, size_t size); glibc (. feature_test_macros(7)): ecvt_r(), fcvt_r(), qecvt_r(), qfcvt_r(): /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE 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 size. See ecvt(3) and qecvt(3). 0 -1 . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |ecvt_r(), fcvt_r(), | | MT-Safe | |qecvt_r(), qfcvt_r() | | | +----------------------------+----------------------------------------------------------+--------------------------+ GNU. . sprintf(3). ecvt(3), qecvt(3), sprintf(3) () Azamat Hackimov , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.17 8 2026 . ecvt_r(3)