Merge branch 'master' into isa/arm64
[lunaix-os.git] / 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 (file)
index 0000000..830e248
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef __LUNAIX_STRING_H
+#define __LUNAIX_STRING_H
+
+#include <string.h>
+
+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 */