cfree(3) Library Functions Manual cfree(3) cfree - LIBRARY Standard C library (libc, -lc) #include /* SunOS 4 */ int cfree(void *ptr); /* glibc FreeBSD libcompat */ void cfree(void *ptr); /* In SCO OpenServer */ void cfree(char ptr[.size * .num], unsigned int num, unsigned int size); /* In Solaris watchmalloc.so.1 */ void cfree(void ptr[.elsize * .nelem], size_t nelem, size_t elsize); glibc (. feature_test_macros(7)): cfree(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _BSD_SOURCE || _SVID_SOURCE This function should never be used. Use free(3) instead. Starting with glibc 2.26, it has been removed from glibc. cfree 1 glibc cfree() free(3), " SunOS". . , . cfree 3 SCO Solaris malloc cfree() , calloc(3). -, #define cfree(p, n, s) free((p)) . : " free(3) , calloc(3), cfree()?" : free(3). SCO : " cfree iBCSe2, free. num size cfree ". cfree() SunOS ( free(3)) 1 0 - . errno EINVAL: ptr , malloc(3). attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |cfree() | | MT-Safe /* glibc */ | +----------------------------+----------------------------------------------------------+--------------------------+ cfree() , SCO, iBCSe2, Intel386 Binary Compatibility Specification, Edition 2. None. Removed in glibc 2.26. . malloc(3) Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , Katrin Kutepova , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . cfree(3)