git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
lunaix-os/libs/klibc/string/strcmp.c
@@ -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