From 05498860e8f7b1e8bb27880bc7526de026694804 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 26 Mar 2021 21:55:50 +0100 Subject: Renamed libs Cleaner and more flexible. --- libs/libc/inc/str.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libs/libc/inc/str.h (limited to 'libs/libc/inc/str.h') diff --git a/libs/libc/inc/str.h b/libs/libc/inc/str.h new file mode 100644 index 0000000..d0a521f --- /dev/null +++ b/libs/libc/inc/str.h @@ -0,0 +1,22 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#ifndef STR_H +#define STR_H + +#include + +u32 strlen(const char *s); +char *strcpy(char *dst, const char *src); +char *strncpy(char *dst, const char *src, u32 n); +char *strchr(char *s, int c); +char *strrchr(char *s, int c); +char *strcat(char *dst, const char *src); +char *strncat(char *dst, const char *src, u32 n); +int strcmp(const char *s1, const char *s2); +int strncmp(const char *s1, const char *s2, u32 n); +char *strinv(char *s); +char *strdup(const char *s); + +const char *strerror(u32 err); + +#endif -- cgit v1.2.3