aboutsummaryrefslogtreecommitdiffstats
path: root/libsimple.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-11-12 16:16:33 +0100
committerMattias Andrée <maandree@kth.se>2017-11-12 16:16:33 +0100
commit8cef2ca2598cfd0587faf29d0025d68c7dc598ea (patch)
treeee4737fed27a213869eb5ca005194cadf24b9cd2 /libsimple.h
parentSplit into multiple units (diff)
downloadlibsimple-8cef2ca2598cfd0587faf29d0025d68c7dc598ea.tar.gz
libsimple-8cef2ca2598cfd0587faf29d0025d68c7dc598ea.tar.bz2
libsimple-8cef2ca2598cfd0587faf29d0025d68c7dc598ea.tar.xz
m + add readme
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libsimple.h')
-rw-r--r--libsimple.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libsimple.h b/libsimple.h
index 019d261..575d36d 100644
--- a/libsimple.h
+++ b/libsimple.h
@@ -717,6 +717,13 @@ int libsimple_strstarts(const char *, const char *);
_LIBSIMPLE_GCC_ONLY(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
+int libsimple_strcasestarts(const char *__s, const char *__t) { return !strncasecmp(__s, __t, strlen(__t)); }
+#ifndef strcasestarts
+# define strcasestarts libsimple_strcasestarts
+#endif
+
+
+_LIBSIMPLE_GCC_ONLY(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
int libsimple_strends(const char *, const char *);
#ifndef strends
# define strends libsimple_strends
@@ -724,6 +731,13 @@ int libsimple_strends(const char *, const char *);
_LIBSIMPLE_GCC_ONLY(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
+int libsimple_strcaseends(const char *, const char *);
+#ifndef strcaseends
+# define strcaseends libsimple_strcaseends
+#endif
+
+
+_LIBSIMPLE_GCC_ONLY(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
char *libsimple_strcasestr(const char *, const char *);
#ifndef strcasestr
# define strcasestr libsimple_strcasestr