search for: to_p

Displaying 1 result from an estimated 1 matches for "to_p".

Did you mean: io_p
2001 Sep 30
3
UTF-8 stuff
...p; *charset) + current_charset = strdup(charset); +} + +static int convert_buffer(const char *fromcode, const char *tocode, + const char *from, size_t fromlen, + char **to, size_t *tolen) { + int ret = -1; + #ifdef HAVE_ICONV - static unsigned char buffer[BUFSIZE]; - char *from_p, *to_p; - size_t from_left, to_left; - iconv_t cd; + ret = iconvert(fromcode, tocode, from, fromlen, to, tolen); + if (ret != -1) + return ret; #endif - if (!strcasecmp(encoding, "UTF-8")) { - /* ideally some checking of the given string should be done */ - *to = malloc(strlen(from)...