X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fwindows%2Fposix.c;h=67e71c8eabe57a0f2041c78a10cab9ac7c133ec0;hp=f5d530011c4f938134bc8a6f77219704a053ebce;hb=36744c7511b71defe1c60666ae175ec8a5ed22c8;hpb=4578d01f2fb310e4bd301176dfdd87827b9ba5d3 diff --git a/os/windows/posix.c b/os/windows/posix.c index f5d53001..67e71c8e 100755 --- a/os/windows/posix.c +++ b/os/windows/posix.c @@ -628,39 +628,6 @@ long long strtoll(const char *restrict str, char **restrict endptr, return _strtoi64(str, endptr, base); } -char *strsep(char **stringp, const char *delim) -{ - char *orig = *stringp; - BOOL gotMatch = FALSE; - int i = 0; - int j = 0; - - if (*stringp == NULL) - return NULL; - - while ((*stringp)[i] != '\0') { - j = 0; - while (delim[j] != '\0') { - if ((*stringp)[i] == delim[j]) { - gotMatch = TRUE; - (*stringp)[i] = '\0'; - *stringp = *stringp + i + 1; - break; - } - j++; - } - if (gotMatch) - break; - - i++; - } - - if (!gotMatch) - *stringp = NULL; - - return orig; -} - int poll(struct pollfd fds[], nfds_t nfds, int timeout) { struct timeval tv;