aboutsummaryrefslogtreecommitdiff
path: root/sys/base/string/equals.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/base/string/equals.c')
-rw-r--r--sys/base/string/equals.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/base/string/equals.c b/sys/base/string/equals.c
deleted file mode 100644
index a975cf5..0000000
--- a/sys/base/string/equals.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "internal.h"
-
-// Equals returns true if string s and t are equivalent.
-bool
-str·equals(const string s, const string t)
-{
- vlong sL = str·len(s);
- vlong tL = str·len(t);
- if (sL != tL) return false;
-
- return memcmp(s, t, sL) == 0;
-}