C syntax/language question. Musl's iconv implementation is generating clang warnings about adding integers to strings in its iconv implementation.
I'd love to improve the code to silence the warnings, but i'm not sure what its supposed to do, assuming the code is correct.
What does the string + integer actually do? despite the wanings.
From musl iconv.c:318
The "\303\252\314\214"+c%256 is where the warning is from.
I'd love to improve the code to silence the warnings, but i'm not sure what its supposed to do, assuming the code is correct.
What does the string + integer actually do? despite the wanings.
From musl iconv.c:318
Code:
unsigned c;
...
x += iconv((iconv_t)(uintptr_t)to,
&(char *){"\303\212\314\204"
"\303\212\314\214"
"\303\252\314\204"
"\303\252\314\214"
+c%256}, &(size_t){4},
out, outb);
The "\303\252\314\214"+c%256 is where the warning is from.