cmp.c: In function 'cheeze_ptr':
cmp.c:3:10: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
3 | while (memcmp(check, prefix, 2))
| ^~~~~~
cmp.c:1:1: note: include '<string.h>' or provide a declaration of 'memcmp'
+++ |+#include <string.h>
1 | static inline void *cheeze_ptr(void *fn, char prefix[2]) {
cmp.c:3:32: warning: 'memcmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
3 | while (memcmp(check, prefix, 2))
| ^
<built-in>: note: built-in 'memcmp' declared here
cmp.c: In function 'compare':
cmp.c:12:31: error: 'bit_get' undeclared (first use in this function)
12 | int *guessval = cheeze_ptr(&bit_get, (char [2]) { 0x48, 0x63 });
| ^~~~~~~
cmp.c:12:31: note: each undeclared identifier is reported only once for each function it appears in