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);

[...]

Thursday, August 27th, 2009 at 00:21 | Comments Off
Categories: c
Tags: , ,

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 [...]

Thursday, August 27th, 2009 at 00:14 | Comments Off
Categories: F, M, R, c

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
[...]

Wednesday, August 26th, 2009 at 02:04 | Comments Off
Categories: A
TOP