From 40cc5e32663cd0350b791b8e54825f564489343f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 22 Jul 2020 18:26:56 +0200 Subject: Imported some things from master --- src/lib/inc/def.h | 20 ++++++++++++++++++++ src/lib/inc/string.h | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/lib/inc/def.h create mode 100644 src/lib/inc/string.h (limited to 'src/lib/inc') diff --git a/src/lib/inc/def.h b/src/lib/inc/def.h new file mode 100644 index 0000000..69b43e3 --- /dev/null +++ b/src/lib/inc/def.h @@ -0,0 +1,20 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#ifndef DEF_H +#define DEF_H + +typedef signed char s8; +typedef unsigned char u8; + +typedef signed short s16; +typedef unsigned short u16; + +typedef signed int s32; +typedef unsigned int u32; + +typedef signed long long s64; +typedef unsigned long long u64; + +#define NULL ((void *)0) + +#endif diff --git a/src/lib/inc/string.h b/src/lib/inc/string.h new file mode 100644 index 0000000..c97fada --- /dev/null +++ b/src/lib/inc/string.h @@ -0,0 +1,10 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#ifndef STRING_H +#define STRING_H + +#include + +u32 strlen(const char *str); + +#endif -- cgit v1.2.3