help how to use iconv.h in pspsdk

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
newcreat
Posts: 5
Joined: Mon Apr 24, 2006 3:09 pm

help how to use iconv.h in pspsdk

Post by newcreat »

i find the pspsdk has iconv.h but i found there is no lib to link.
i wonder how to use it ,thx
the iconv.h locale in ../psp/include/

Code: Select all

#ifndef _ICONV_H_
#define _ICONV_H_

#include <_ansi.h>
#include <reent.h>
#include <sys/types.h>
#include <sys/_types.h>

/* iconv_t&#58; charset conversion descriptor type */
typedef _iconv_t iconv_t;

_BEGIN_STD_C

#ifndef _REENT_ONLY
iconv_t 
_EXFUN&#40;iconv_open, &#40;_CONST char *, _CONST char *&#41;&#41;;

size_t
_EXFUN&#40;iconv, &#40;iconv_t, _CONST char **, size_t *, char **, size_t *&#41;&#41;;

int
_EXFUN&#40;iconv_close, &#40;iconv_t&#41;&#41;;
#endif

iconv_t
_EXFUN&#40;_iconv_open_r, &#40;struct _reent *, _CONST char *, _CONST char *&#41;&#41;;

size_t
_EXFUN&#40;_iconv_r, &#40;struct _reent *, iconv_t, _CONST char **, 
                  size_t *, char **, size_t *&#41;&#41;;

int
_EXFUN&#40;_iconv_close_r, &#40;struct _reent *, iconv_t&#41;&#41;;

_END_STD_C

#endif /* #ifndef _ICONV_H_ */
Ghozt
Posts: 34
Joined: Mon Mar 13, 2006 8:37 pm

Post by Ghozt »

I don't know if this will help or anything but my iconv.h is located i c:/cygwin/usr/include, not psp/include.
newcreat
Posts: 5
Joined: Mon Apr 24, 2006 3:09 pm

Post by newcreat »

Ghozt wrote:I don't know if this will help or anything but my iconv.h is located i c:/cygwin/usr/include, not psp/include.
I see, thank you.
I find another way to translate unicode ,I use some codes in libiconv
Post Reply