diff options
author | Curtis McEnroe | 2018-08-07 15:43:49 -0400 |
---|---|---|
committer | Curtis McEnroe | 2018-08-07 15:46:04 -0400 |
commit | fe21b1410f3a2a0ee756a4b30dbd9ba91434cca3 (patch) | |
tree | 6d47583bd0234fb1107781a641ce666bb2fc9b61 /pls.c | |
parent | 5d2b5cd51e64c3e49a536ef431c97dc1d0b78dfd (diff) |
Convert input to multibyte before handling
Diffstat (limited to 'pls.c')
-rw-r--r-- | pls.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/pls.c b/pls.c index 7e6570c..0667036 100644 --- a/pls.c +++ b/pls.c @@ -20,18 +20,6 @@ #include <stdlib.h> #include <wchar.h> -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 <https://en.cppreference.com/w/c/io/fwprintf#Notes>: // // While narrow strings provide snprintf, which makes it possible to determine |