gcvt(3) Library Functions Manual gcvt(3) gcvt - C (libc, -lc) #include char *gcvt(double number, int ndigit, char *buf); glibc (. feature_test_macros(7)): gcvt(): Since glibc 2.17 (_XOPEN_SOURCE >= 500 && ! (_POSIX_C_SOURCE >= 200809L)) || /* glibc >= 2.20 */ _DEFAULT_SOURCE || /* glibc <= 2.19 */ _SVID_SOURCE glibc 2.12 to glibc 2.16: (_XOPEN_SOURCE >= 500 && ! (_POSIX_C_SOURCE >= 200112L)) || _SVID_SOURCE Before glibc 2.12: _SVID_SOURCE || _XOPEN_SOURCE >= 500 gcvt() number ASCII ( null ) buf. ndigit F E , printf(3). The gcvt() function returns buf. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |gcvt() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ None. Marked as LEGACY in POSIX.1-2001. POSIX.1-2008 removed it, recommending the use of sprintf(3) instead (though snprintf(3) may be preferable). ecvt(3), fcvt(3), sprintf(3) () Azamat Hackimov , Dmitry Bolkhovskikh , Vladislav , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . gcvt(3)