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)
 
#define container_of(ptr, 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 
)
Value:
({ \
__typeof__(((type*)0)->member)* __mptr = (ptr); \
(type*)((char*)__mptr - offsetof(type, member)); \
})
void * ptr
Definition: TPCircularBuffer.h:205

◆ min

#define min (   a,
 
)
Value:
({ \
__typeof__(a) _a = (a); \
__typeof__(b) _b = (b); \
_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: