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)
downloadtest-fe21b1410f3a2a0ee756a4b30dbd9ba91434cca3.tar.gz
test-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
laim to be curl(1) in titleJune McEnroe 2019-10-02Add The Red Threads of FortuneJune McEnroe 2019-09-28Add The Black Tides of HeavenJune McEnroe 2019-09-27Fail on HTTP failure status in titleJune McEnroe 2019-09-23Add Trail of LightningJune McEnroe 2019-09-22Revert "Enable cookies in title"June McEnroe 2019-09-20Enable cookies in titleJune McEnroe 2019-09-16Use sensitivity aliases in TF2June McEnroe 2019-09-16Add The Just CityJune McEnroe 2019-09-12Only GET the final redirect locationJune McEnroe 2019-09-12Consume entire bodyJune McEnroe 2019-09-10Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe 2019-09-08Set title User-AgentJune McEnroe 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe