Changed libc structure, shouldn't've added anything new

This commit is contained in:
2024-10-19 15:11:00 +02:00
parent e2e24d3853
commit 64b4e47d73
38 changed files with 264 additions and 276 deletions
+14 -8
View File
@@ -1,23 +1,29 @@
#ifndef STRING_H
#define STRING_H
#ifndef _STRING_H
#define _STRING_H
#include <stdint.h>
#include <stddef.h>
void* memcpy(void* src, void* dst, uint32_t length);
void* memcpy32(void* src, void* dst, uint32_t length);
void* memset(void* dst, uint8_t value, uint32_t length);
void* memcpy(void* src, void* dst, size_t length);
void* memcpy32(void* src, void* dst, size_t length);
void* memset(void* dst, uint8_t value, size_t length);
void* memset32(void* dst, uint32_t value, size_t length);
char* itoa(uint32_t val, uint8_t base);
char* itoa(size_t val, int base);
uint32_t atoi(const char* str);
int isSpace(char c);
char* strcpy(char* str1, const char* str2);
char* strncpy(char* str1, const char* str2, size_t n);
char* strcat(char* str1, const char* str2);
char* strncat(char* str1, const char* str2, size_t n);
char* strchr(const char* str, char c);
char* strrchr(const char* str, char c);
int strcmp(const char* str1, const char* str2);
int strncmp(const char* str1, const char* str2, size_t n);
uint32_t strlen(const char* str);
size_t strlen(const char* str);
#endif