* Translate text from UTF-8 to current CODESET (LC_CTYPE).
* Thanx to Alexander Bokovoy for this code.
*/
int fortune_iconv(iconv_t _cd, char *inbuf, int inlen, char *outbuf, int outlen)
int fortune_iconv(iconv_t _cd, char *inbuf, size_t inlen, char *outbuf, size_t outlen)
{
char *outptr;
size_t n;