--- psiconv/trunk/lib/psiconv/common.h 2003/11/27 11:43:51 173 +++ psiconv/trunk/lib/psiconv/common.h 2004/01/06 20:15:01 184 @@ -24,6 +24,8 @@ #define PSICONV_COMMON_H #include +#include +#include #ifdef __cplusplus extern "C" { @@ -33,10 +35,12 @@ * misc.c * *************** */ -/* This function returns a copy of a string, that contains no ASCII codes - that are not printable. You should free this string yourself when you are +/* This function returns a copy of a Unicode string, converted to plain ASCII. + Anything codepage dependent (> 128) is sanitized away. + You should free this string yourself when you are done with it. Returns NULL if there is not enough memory left. */ -extern char *psiconv_make_printable(const char *s); +extern char *psiconv_make_printable(const psiconv_config config, + const psiconv_string_t s); /* **************