C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
os.h
Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <stdint.h>
10 #include <stdbool.h>
11 #include <stdarg.h>
12 #include <string.h>
13 #include <unistd.h>
14 #include <assert.h>
15 #include <pthread.h>
16 #include <signal.h>
17 #include <sys/time.h>
18 #include <limits.h>
19 
21 #ifndef CUSTOM_MALLOC
22  #define os_alloc(nmemb, size) calloc((nmemb), (size))
23  #define os_free(mem_addr) free((mem_addr))
24 #endif