FreeRDP
uwac-utils.h File Reference
#include <stdlib.h>
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ ARRAY_LENGTH

#define ARRAY_LENGTH (   a)    (sizeof(a) / sizeof(a)[0])

◆ container_of

#define container_of (   ptr,
  type,
  member 
)    (type*)((char*)(ptr)-offsetof(type, member))

◆ min

#define min (   a,
 
)    (a) < (b) ? (a) : (b)

Function Documentation

◆ xmalloc()

void* xmalloc ( size_t  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xrealloc()

void* xrealloc ( void *  p,
size_t  s 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xstrdup()

char* xstrdup ( const char *  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xzalloc()

void* xzalloc ( size_t  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zalloc()

static void* zalloc ( size_t  size)
inlinestatic
Here is the caller graph for this function: