C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
os.h File Reference

Used for including os specific headers. More...

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <signal.h>
#include <sys/time.h>
#include <limits.h>

Go to the source code of this file.

Macros

#define os_alloc(nmemb, size)   calloc((nmemb), (size))
 Custom malloc if not defined use calloc and free. More...
 
#define os_free(mem_addr)   free((mem_addr))
 

Detailed Description

Used for including os specific headers.

Definition in file os.h.

Macro Definition Documentation

◆ os_alloc

#define os_alloc (   nmemb,
  size 
)    calloc((nmemb), (size))

Custom malloc if not defined use calloc and free.

Definition at line 22 of file os.h.

◆ os_free

#define os_free (   mem_addr)    free((mem_addr))

Definition at line 23 of file os.h.