Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
---
win32/mingw.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/win32/mingw.c b/win32/mingw.c
index eccd37c..937e942 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -348,3 +348,21 @@ int link(const char *oldpath, const char *newpath)
}
return 0;
}
+
+char *strsep(char **stringp, const char *delim)
+{
+ char *s, *old_stringp;
+ if (!*stringp)
+ return NULL;
+ old_stringp = s = *stringp;
+ while (*s) {
+ if (strchr(delim, *s)) {
+ *s = '\0';
+ *stringp = s+1;
+ return old_stringp;
+ }
+ s++;
+ }
+ *stringp = NULL;
+ return old_stringp;
+}
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox