fix: screen switch now works well with the shell and its "history"
This commit is contained in:
@ -8,4 +8,5 @@ int strncmp(const char *s1, const char *s2, size_t n);
|
||||
size_t strlen(const char *str);
|
||||
char *strstr(const char *haystack, const char *needle);
|
||||
void *memcpy(void *dest, const void *src, size_t n);
|
||||
int memcmp(const void *s1, const void *s2, size_t n);
|
||||
int memcmp(const void *s1, const void *s2, size_t n);
|
||||
void *memset(void *str, int c, size_t n);
|
||||
|
11
libbozo/src/string/memset.c
Normal file
11
libbozo/src/string/memset.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
void *memset(void *str, int c, size_t n)
|
||||
{
|
||||
uint8_t *c1 = (uint8_t *)str;
|
||||
|
||||
for (size_t i = 0; i < n; i++)
|
||||
c1[i] = c;
|
||||
return c1;
|
||||
}
|
Reference in New Issue
Block a user