Portable error handling and g_iconv_open()

Glib function g_iconv_open() returns GIConv and there is no explicit
error handling method for it. Libc iconv_open() returns (iconv_t)-1 when
it fails, but I don't know if it is portable with other iconv
implementations. Is checking error from g_iconv_open() by comparing
result with (GIConv)-1 portable? If no what is the correct solution (if
it exists)?

struct Sig {
  string name("     J a r e k   D u k a t     ");
  string mail(" madmaxer (at) poczta (dot) fm ");

Znawcy prawa konstytucyjnego negatywnie opiniuj± zmiany prawne
na temat Rady Polityki Pienieznej >>> http://link.interia.pl/f15fe

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]