Created string.h header; moved code to string.c

This commit is contained in:
2021-04-10 20:15:23 -05:00
parent a57d841085
commit 6a4f777340
4 changed files with 125 additions and 221 deletions

15
include/string.h Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include <stddef.h>
void *memcpy(void *destination, const void *source, size_t num);
void *memmove(void *destination, const void *source, size_t num);
int memcmp(const void *ptr1, const void *ptr2, size_t num);
void *memset(void *ptr, int value, size_t num);
int strlen(const char *str);
char *strcpy(char *destination, const char *source);