Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!kgw2!dennisg From: dennisg@kgw2.bwi.WEC.COM (Dennis Glatting) Newsgroups: comp.sys.next Subject: Re: Wide characters? Message-ID: <1889@kgw2.bwi.WEC.COM> Date: 17 Jan 91 19:35:40 GMT References: Sender: dennisg@kgw2.bwi.WEC.COM Reply-To: dennisg@Xetron.COM Organization: Xetron Corporation, Cincinnati Ohio Lines: 40 In article , scott@sage.uchicago.edu (Scott Deerwester) writes: |> I'm building an application that will use Unicode characters as the |> native text representation standard. And in stdlib.h are the |> following tantalizing function declarations: |> |> extern int mblen(const char *s, size_t n); |> extern int mbtowc(wchar_t *pwc, const char *s, size_t n); |> extern int wctomb(char *s, wchar_t wchar); |> extern size_t mbstowcs(wchar_t *pwcs, const char *s, size_t n); |> extern size_t wcstombs(char *s, const wchar_t *pwcs, size_t n); |> |> And in stddef.h is the following: |> |> typedef unsigned short wchar_t; |> |> Looks a *whole* lot like the ANSI C ($31.95 for the book; ack) |> definition, but I can't find a reference to these functions |> *anywhere*! I tried things like: |> |> find /usr/include -print | xargs grep wctomb |> |> and: |> |> grep -l wctomb /usr/lib/lib*.a |> |> No dice. Anybody have a clue what these functions are supposed to do? |> I'm *hoping* that they do some sort of mapping between something |> vaguely Unicode-like and something vaguely ASCII-like. (Hope springs |> eternal...) Does anybody know? see page 10-11 of the ARM -- ..!uunet!kgw2!dennisg | Dennis P. Glatting dennisg@Xetron.COM | X2NeXT developer | And now a NeXT/C++ geek