home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
gnu
/
src
/
amiga
/
libnix-0.7-src.lha
/
libnix-0.7
/
sources
/
nix
/
stdio
/
mbtowc.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-12-12
|
280 b
|
13 lines
#include <stdlib.h>
/* Sorry, the Amiga OS locale currently doesn't support
* character sets other than ECMA Latin 1, so this is
* just a "C" locale function
*/
int mbtowc(wchar_t *wc,const char *s,size_t n)
{ if(n&&s)
{ *wc=*s;
return sizeof(wchar_t); }
return 0;
}