From 1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 12 Jul 2021 18:14:44 +0200 Subject: Renamed files to match presentation --- src/loader/inc/library.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/loader/inc/library.h (limited to 'src/loader/inc/library.h') diff --git a/src/loader/inc/library.h b/src/loader/inc/library.h new file mode 100644 index 0000000..2f49007 --- /dev/null +++ b/src/loader/inc/library.h @@ -0,0 +1,20 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#ifndef LIB_H +#define LIB_H + +#include + +u32 strlen(const char *str); +u32 strnlen(const char *s, u32 max); +u32 strlcpy(char *dst, const char *src, u32 size); +s32 strncmp(const char *s1, const char *s2, u32 n); + +void *memcpy(void *dest, const void *src, u32 n); +void *memset(void *dest, u32 val, u32 n); +s32 memcmp(const void *s1, const void *s2, u32 n); + +s32 itoa(s32 value, char *buffer, u32 base); +s32 atoi(const char *inp); + +#endif -- cgit v1.2.3