+++ /dev/null
-#ifndef __INTERNAL_H
-#define __INTERNAL_H
-
-// These are libc builtins, so there's no need to carry an implementation here.
-void *memcpy(void *dest, const void *src, size_t len);
-size_t strlen(const char *string);
-
-#endif
#include <string.h>
#include "patcher.h"
#include "fsldr.h"
-#include "internal.h"
+#include <string.h>
#ifndef PATH_MAX
#define PATH_MAX 255
return i;
}
-
-size_t
-strnlen(const char *string, size_t maxlen)
-{
- size_t size;
-
- for (size = 0; *string && size < maxlen; string++, size++)
- ;
-
- return size;
-}
#ifndef __MEMORY_H
#define __MEMORY_H
-//int memcmp(const void *buf1, const void *buf2, u32 size);
u8 *memfind(u8 *startPos, u32 size, const void *pattern, u32 patternSize);
u32 patchMemory(u8 *start, u32 size, const void *pattern, u32 patSize, int offset, const void *replace, u32 repSize, u32 count);
-size_t strnlen(const char *string, size_t maxlen);
#endif