typedef enum { US_ASCII, ISO8859_1, ISO8859_2, ISO8859_3, ISO8859_4, ISO8859_5, ISO8859_6, ISO8859_7, ISO8859_8, ISO8859_9, } ISO_charset; char *ISO_charset_repr[] ; #define charset2str(c) (ISO_charset_repr[c]) ISO_charset str2charset(char *s);