about summary refs log tree commit diff
path: root/pls.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-07 15:43:49 -0400
committerJune McEnroe <june@causal.agency>2018-08-07 15:46:04 -0400
commitfe21b1410f3a2a0ee756a4b30dbd9ba91434cca3 (patch)
tree6d47583bd0234fb1107781a641ce666bb2fc9b61 /pls.c
parentPopulate tab-complete list (diff)
downloadcatgirl-fe21b1410f3a2a0ee756a4b30dbd9ba91434cca3.tar.gz
catgirl-fe21b1410f3a2a0ee756a4b30dbd9ba91434cca3.zip
Convert input to multibyte before handling
Diffstat (limited to 'pls.c')
-rw-r--r--pls.c12
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