codex
Loading...
Searching...
No Matches
header.c File Reference
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for header.c:

Classes

struct  array
 

Macros

#define container_of(p, t, m)   ((t*)((char*)(p) - offsetof(t, m)))
 

Typedefs

typedef uint32_t u32
 

Functions

char * array_alloc (size_t n)
 
size_t array_size (char *p)
 
void array_destroy (char *p)
 

Macro Definition Documentation

◆ container_of

#define container_of ( p,
t,
m )   ((t*)((char*)(p) - offsetof(t, m)))

Typedef Documentation

◆ u32

typedef uint32_t u32

Function Documentation

◆ array_alloc()

char * array_alloc ( size_t n)

◆ array_destroy()

void array_destroy ( char * p)

◆ array_size()

size_t array_size ( char * p)