🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4886

Re: Multibyte and wide-character support

#4886
From: Clive D.W. Feather
Date: Tue, 12 Mar 1996 06:12
23 lines
1462 bytes
In article <KANZE.96Mar7135846@gabi.gabi-soft.fr>,
J. Kanze <kanze@gabi-soft.fr> wrote:
>In article <4he9gg$m9l@pentagon.io.com> jamshid@io.com (Jamshid Afshar)
>writes:
>|> Btw, VC++4's docs say that if mbstowcs()'s wchar_t* destination
>|> argument is NULL then the function doesn't do a conversion of the
>|> multibyte string; it just returns the size needed to store the
>|> multibyte string.
> No mention of it in my copy of the standard.

But mbsrtowcs has the functionality you require.

>|> Also, the VC++4 docs seem to indicate fputws(), a
>|> wchar_t version of fputs(), is "ANSI" compatible.  Standard C doesn't
>|> actually specify any wide-character i/o functions, does it?
> There not in the index, anyway.

Then your copy is out of date. fputws is part of the C Standard.

-- 
Clive D.W. Feather                       | If you lie to the compiler,
cdwf@cityscape.co.uk   (work, preferred) | it will get its revenge.
clive@stdc.demon.co.uk (home)            |   - Henry Spencer
Technical Details
Message-ID: <Do558A.6po@stdc.demon.co.uk>
Path: arc1-ca.pugleaf.net!stdc.demon.co.uk!clive
References: <4he9gg$m9l@pentagon.io.com> <KANZE.96Mar7135846@gabi.gabi-soft.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stdc.demon.co.uk!clive
From: clive@stdc.demon.co.uk (Clive D.W. Feather)
Newsgroups: comp.std.c
Subject: Re: Multibyte and wide-character support
Date: Tue, 12 Mar 1996 06:12:08 GMT
Organization: Demon Internet Limited (personal account)
Message-ID: <Do558A.6po@stdc.demon.co.uk>
References: <4he9gg$m9l@pentagon.io.com> <KANZE.96Mar7135846@gabi.gabi-soft.fr>
Reply-To: cdwf@cityscape.co.uk
X-NNTP-Posting-Host: stdc.demon.co.uk