summaryrefslogtreecommitdiff
path: root/src/lib/evil/evil_string.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2017-10-09 05:04:26 +0200
committerCedric Bail <cedric@osg.samsung.com>2017-10-13 11:40:10 -0700
commitc47fdb8c80bc02d54bb45d0980538e8f9f868dd6 (patch)
tree60d637bc7b8382e22c9e1b267a957c338f0aa13d /src/lib/evil/evil_string.c
parent4dae43e4d13ca43b9fef41f180ee7315b49dd3be (diff)
evil: remove strrstr and ffs - not used in the EFL on Windows
Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evil/evil_string.c')
-rw-r--r--src/lib/evil/evil_string.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/lib/evil/evil_string.c b/src/lib/evil/evil_string.c
index 4534b72..08ab2d7 100644
--- a/src/lib/evil/evil_string.c
+++ b/src/lib/evil/evil_string.c
@@ -29,34 +29,6 @@ strndup(const char *str, size_t n)
29 return ret; 29 return ret;
30} 30}
31 31
32int ffs(int i)
33{
34 int size;
35 int x;
36
37 if (!i) return 1;
38
39 /* remove the sign bit */
40 x = i & -i;
41 size = sizeof(int) << 3;
42 for (i = size; i > 0; --i, x <<= 1)
43 if (x & (1 << (size - 1))) return i;
44
45 return x;
46}
47
48char *
49strrstr (const char *str, const char *substr)
50{
51 char *it;
52 char *ret = NULL;
53
54 while ((it = strstr(str, substr)))
55 ret = it;
56
57 return ret;
58}
59
60char *strcasestr(const char *haystack, const char *needle) 32char *strcasestr(const char *haystack, const char *needle)
61{ 33{
62 size_t length_needle; 34 size_t length_needle;