feat: initial booting kernel, copy libc stuff from myke
This commit is contained in:
40
yak-kernel/include/string.h
Normal file
40
yak-kernel/include/string.h
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// Created by rick on 01-02-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_STRING_H
|
||||
#define NEW_KERNEL_STRING_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void *memcpy(void *dst, const void *src, size_t amount);
|
||||
|
||||
void *memset(void *dst, int data, size_t amount);
|
||||
|
||||
void *memmove(void *dst, const void *src, size_t amount);
|
||||
|
||||
void *strcpy(char *dst, const char *src);
|
||||
|
||||
void *strncpy(char *dst, const char *src, size_t n);
|
||||
|
||||
size_t strlen(const char *str);
|
||||
|
||||
char *strchr(const char *s, char c);
|
||||
|
||||
char *strrchr(const char *s, char c);
|
||||
|
||||
int memcmp(const void *s1, const void *s2, size_t n);
|
||||
|
||||
int strcmp(const char *s1, const char *s2);
|
||||
|
||||
int strncmp(const char *s1, const char *s2, size_t n);
|
||||
|
||||
char *strdup(const char *s);
|
||||
|
||||
char *strndup(const char *s, size_t n);
|
||||
|
||||
char *strcat(char *dest, const char *src);
|
||||
|
||||
char *strncat(char *dest, const char *src, size_t n);
|
||||
|
||||
#endif //NEW_KERNEL_STRING_H
|
||||
Reference in New Issue
Block a user