summaryrefslogtreecommitdiff
path: root/src/libstddjb/case_startb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/case_startb.c')
-rw-r--r--src/libstddjb/case_startb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/case_startb.c b/src/libstddjb/case_startb.c
new file mode 100644
index 0000000..cae0fb4
--- /dev/null
+++ b/src/libstddjb/case_startb.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/bytestr.h>
+
+int case_startb (register char const *s, unsigned int slen, register char const *t)
+{
+ register unsigned int tlen = str_len(t) ;
+ return slen < tlen ? 0 : !case_diffb(s, tlen, t) ;
+}