Posts Tagged ‘brk’

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

brk, sbrk – change data segment size
USAGE
#include <unistd.h>

int brk(void *end_data_segment);

void *sbrk(intptr_t increment);

DESCRIPTION
brk() sets the end of the data segment to [...]

Wednesday, August 26th, 2009 at 02:41 | Comments Off
Categories: B, S

alloca – memory allocator
USAGE
#include <alloca.h>

void *alloca(size_t size);

DESCRIPTION
The alloca() function allocates size bytes of space in the stack frame
of the caller. This temporary space is automatically [...]

Wednesday, August 26th, 2009 at 01:50 | Comments Off
Categories: A
TOP