diff options
Diffstat (limited to 'src/base/string/find.c')
-rw-r--r-- | src/base/string/find.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/base/string/find.c b/src/base/string/find.c index 20f990e..821094d 100644 --- a/src/base/string/find.c +++ b/src/base/string/find.c @@ -3,9 +3,11 @@ // find will find the first occurence of // substr in the string returns -1 if nothing was found. int -str·find(string s, const byte* substr) +string·find(string s, char* substr) { - byte* loc = strstr(s, substr); - if (loc == nil) return -1; - return (int)(loc - s); + char* loc = str·find(s, substr); + + if(loc == nil) + return -1; + return(int)(loc - s); } |