feat: vfs - path walking and dnode caching.
[lunaix-os.git] / lunaix-os / libs / klibc / string / strcmp.c
diff --git a/lunaix-os/libs/klibc/string/strcmp.c b/lunaix-os/libs/klibc/string/strcmp.c
new file mode 100644 (file)
index 0000000..736bb91
--- /dev/null
@@ -0,0 +1,14 @@
+#include <klibc/string.h>
+
+int
+streq(const char* a, const char* b)
+{
+    while (*a == *b) {
+        if (!(*a)) {
+            return 1;
+        }
+        a++;
+        b++;
+    }
+    return 0;
+}
\ No newline at end of file