X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/6942ebae59c3904674dce6b67cd07c43a3bbe00d..7e13988c1113d38bec17bd79b71757d78d977e76:/lunaix-os/tests/units/stubs/includes/klibc/string.h diff --git a/lunaix-os/tests/units/stubs/includes/klibc/string.h b/lunaix-os/tests/units/stubs/includes/klibc/string.h new file mode 100644 index 0000000..830e248 --- /dev/null +++ b/lunaix-os/tests/units/stubs/includes/klibc/string.h @@ -0,0 +1,18 @@ +#ifndef __LUNAIX_STRING_H +#define __LUNAIX_STRING_H + +#include + +static inline int +streq(const char* a, const char* b) +{ + return strcmp(a, b) == 0; +} + +static inline int +strneq(const char* a, const char* b, unsigned long n) +{ + return strcmp(a, b) != 0; +} + +#endif /* __LUNAIX_STRING_H */