summaryrefslogtreecommitdiffstats
path: root/String.c
diff options
context:
space:
mode:
Diffstat (limited to 'String.c')
-rw-r--r--String.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/String.c b/String.c
index 00cd4f2c..e862bff5 100644
--- a/String.c
+++ b/String.c
@@ -14,6 +14,10 @@ in the source distribution for its full text.
#include "debug.h"
+/*{
+#define String_startsWith(s, match) (strstr((s), (match)) == (s))
+}*/
+
inline void String_delete(char* s) {
free(s);
}
@@ -102,10 +106,6 @@ inline int String_eq(char* s1, char* s2) {
return (strcmp(s1, s2) == 0);
}
-inline int String_startsWith(char* s, char* match) {
- return (strstr(s, match) == s);
-}
-
char** String_split(char* s, char sep) {
const int rate = 10;
char** out = (char**) malloc(sizeof(char*) * rate);