Runtime/math matches; better libc headers

Former-commit-id: bef7db1748
This commit is contained in:
2022-08-25 23:46:24 -04:00
parent 75f08901d8
commit 00c77e6195
116 changed files with 5434 additions and 973 deletions

24
libc/string.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef _STRING_H_
#define _STRING_H_
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
void* memcpy(void* dest, const void* src, size_t num);
void* memset(void* dest, int ch, size_t count);
size_t strlen(const char* s);
char* strcpy(char* dest, const char* src);
char* strncpy(char* dest, const char* src, size_t num);
int strcmp(const char* s1, const char* s2);
int strncmp(const char* s1, const char* s2, size_t n);
char* strncat(char* dest, const char* src, size_t n);
#ifdef __cplusplus
}
#endif
#endif