src/stdlib/SDL_iconv.c
branchSDL-1.2
changeset 3984 b74530a1dad6
parent 3918 f16c15f3bc2b
child 3985 2f8efcf14c83
equal deleted inserted replaced
3983:540466e900db 3984:b74530a1dad6
    29 #ifdef HAVE_ICONV
    29 #ifdef HAVE_ICONV
    30 
    30 
    31 #include <errno.h>
    31 #include <errno.h>
    32 
    32 
    33 size_t SDL_iconv(SDL_iconv_t cd,
    33 size_t SDL_iconv(SDL_iconv_t cd,
    34                  char **inbuf, size_t *inbytesleft,
    34                  const char **inbuf, size_t *inbytesleft,
    35                  char **outbuf, size_t *outbytesleft)
    35                  char **outbuf, size_t *outbytesleft)
    36 {
    36 {
    37 	size_t retCode = iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft);
    37 	size_t retCode = iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft);
    38 	if ( retCode == (size_t)-1 ) {
    38 	if ( retCode == (size_t)-1 ) {
    39 		switch(errno) {
    39 		switch(errno) {