From fe21b1410f3a2a0ee756a4b30dbd9ba91434cca3 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 7 Aug 2018 15:43:49 -0400 Subject: Convert input to multibyte before handling --- pls.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'pls.c') diff --git a/pls.c b/pls.c index 7e6570c..0667036 100644 --- a/pls.c +++ b/pls.c @@ -20,18 +20,6 @@ #include #include -wchar_t *wcssep(wchar_t **stringp, const wchar_t *delim) { - wchar_t *orig = *stringp; - if (!orig) return NULL; - size_t i = wcscspn(orig, delim); - *stringp = NULL; - if (orig[i]) { - orig[i] = L'\0'; - *stringp = &orig[i + 1]; - } - return orig; -} - // From : // // While narrow strings provide snprintf, which makes it possible to determine -- cgit 1.4.1-2-gfad0