src/stdlib/SDL_iconv.c
changeset 1849 b5a4ac87b98c
parent 1519 c99e7a9c9bc9
child 1895 c121d94672cb
child 3918 f16c15f3bc2b
equal deleted inserted replaced
1848:3c5eed71a332 1849:b5a4ac87b98c
   153                  char **outbuf, size_t *outbytesleft)
   153                  char **outbuf, size_t *outbytesleft)
   154 {
   154 {
   155 	/* For simplicity, we'll convert everything to and from UCS-4 */
   155 	/* For simplicity, we'll convert everything to and from UCS-4 */
   156 	char *src, *dst;
   156 	char *src, *dst;
   157 	size_t srclen, dstlen;
   157 	size_t srclen, dstlen;
   158 	Uint32 ch;
   158 	Uint32 ch = 0;
   159 	size_t total;
   159 	size_t total;
   160 
   160 
   161 	if ( !inbuf || !*inbuf ) {
   161 	if ( !inbuf || !*inbuf ) {
   162 		/* Reset the context */
   162 		/* Reset the context */
   163 		return 0;
   163 		return 0;