FreeRDP
|
#include <stdlib.h>
Macros | |
#define | min(a, b) (a) < (b) ? (a) : (b) |
#define | container_of(ptr, type, member) (type*)((char*)(ptr)-offsetof(type, member)) |
#define | ARRAY_LENGTH(a) (sizeof(a) / sizeof(a)[0]) |
Functions | |
void * | xmalloc (size_t s) |
static void * | zalloc (size_t size) |
void * | xzalloc (size_t s) |
char * | xstrdup (const char *s) |
void * | xrealloc (void *p, size_t s) |
#define ARRAY_LENGTH | ( | a | ) | (sizeof(a) / sizeof(a)[0]) |
#define min | ( | a, | |
b | |||
) | (a) < (b) ? (a) : (b) |
void* xmalloc | ( | size_t | s | ) |
void* xrealloc | ( | void * | p, |
size_t | s | ||
) |
char* xstrdup | ( | const char * | s | ) |
void* xzalloc | ( | size_t | s | ) |
|
inlinestatic |