Nucleus
Barry System headers (remove libc dependency) 18495cf (3 years, 2 months ago)diff --git a/include/nucleus/lib.h b/include/nucleus/lib.h new file mode 100644 index 0000000..a352728 --- /dev/null +++ b/include/nucleus/lib.h @@ -0,0 +1,21 @@ +#ifndef _NUCLEUS_LIB_H +#define _NUCLEUS_LIB_H + +#include <stdarg.h> +#include <stddef.h> + +int vsprintf(char *buf, const char *fmt, va_list args); +int sprintf(char *buf, const char *fmt, ...); + +void *memset(void *dest, int byte, size_t len); +int memcmp(void *s1, void *s2, size_t n); +void *memcpy(void *dest, const void *src, size_t n); + +int strcmp(const char *s1, const char *s2); +int strncmp(const char *s1, const char *s2, size_t n); +char *strcpy(char *dest, const char *src); +char *strncpy(char *dest, const char *src, size_t n); +size_t strlen(const char *str); +size_t strnlen(const char *str, size_t n); + +#endif