Posts Tagged ‘free’
cfree – free allocated memory
USAGE
#include <stdlib.h>
/* In SunOS 4 */
int cfree(void *ptr);
/* In glibc or FreeBSD libcompat */
void cfree(void *ptr);
[...]
calloc, malloc, free, realloc – Allocate and free dynamic memory
USAGE
#include <stdlib.h>
void *calloc(size_t nmemb, size_t size);
void *malloc(size_t size);
void free(void *ptr);
void *realloc(void [...]
asprintf, vasprintf – print to allocated string
USAGE
#define _GNU_SOURCE
#include <stdio.h>
int asprintf(char **strp, const char *fmt, …);
int vasprintf(char **strp, const char *fmt, va_list ap);
DESCRIPTION
[...]
