home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / libnix-0.8-src.lha / libnix-0.8 / sources / nix / stdio / mbtowc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  280 b   |  13 lines

  1. #include <stdlib.h>
  2.  
  3. /* Sorry, the Amiga OS locale currently doesn't support
  4.  * character sets other than ECMA Latin 1, so this is
  5.  * just a "C" locale function 
  6.  */
  7. int mbtowc(wchar_t *wc,const char *s,size_t n)
  8. { if(n&&s)
  9.   { *wc=*s;
  10.     return sizeof(wchar_t); }
  11.   return 0;
  12. }
  13.