From 3534b428629be185e096be99e3bd5fdfe32d5544 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 18 Sep 2014 18:55:44 +0000 Subject: initial commit with rc for skalibs-2.0.0.0 --- src/libstddjb/case_startb.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/libstddjb/case_startb.c (limited to 'src/libstddjb/case_startb.c') 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 + +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) ; +} -- cgit v1.2.3