summaryrefslogtreecommitdiff
path: root/src/bin/utils.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-09 15:14:24 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-09 15:14:24 +0000
commit08e164ce10fa25a47fffe0cd32948b5ee2cd27aa (patch)
tree8de97630cc5a165ca078f435022d2b83685ed6b7 /src/bin/utils.h
parent2a0e0fd2b429af5e8ec151ae3e4fe67c4e4f13ef (diff)
casestartswith() macro to help strncasecmp() with static comparison.
SVN revision: 77654
Diffstat (limited to 'src/bin/utils.h')
-rw-r--r--src/bin/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/utils.h b/src/bin/utils.h
index 52e9dbf..e26c403 100644
--- a/src/bin/utils.h
+++ b/src/bin/utils.h
@@ -12,4 +12,7 @@ Eina_Bool link_is_protocol(const char *str);
12Eina_Bool link_is_url(const char *str); 12Eina_Bool link_is_url(const char *str);
13Eina_Bool link_is_email(const char *str); 13Eina_Bool link_is_email(const char *str);
14 14
15#define casestartswith(str, constref) \
16 (!strncasecmp(str, constref, sizeof(constref) - 1))
17
15#endif 18#endif