Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #13145

Re: No fread and fwrite for wide characters?

From Ike Naar <ike@sverige.freeshell.org>
Newsgroups comp.lang.c
Subject Re: No fread and fwrite for wide characters?
Date 2011-11-11 22:58 +0000
Organization A noiseless patient Spider
Message-ID <slrn3vfsjbra5h.8dt.ike@sverige.freeshell.org> (permalink)
References (1 earlier) <4EBC0B3D.5040504@verizon.net> <j9h3bu$p8k$1@oravannahka.helsinki.fi> <4EBC1A22.5090407@verizon.net> <j9hmdp$at8$1@oravannahka.helsinki.fi> <87k476cn0v.fsf@bazspaz.fatphil.org>

Show all headers | View raw


On 2011-11-11, Phil Carmody <thefatphil_demunged@yahoo.co.uk> wrote:
> Lauri Alanko <la@iki.fi> writes:
>> In article <4EBC1A22.5090407@verizon.net>,
>> James Kuyper  <jameskuyper@verizon.net> wrote:
>> > So, this is not at all the wide character equivalent of fwrite(), which
>> > makes more sense, since narrow characters have nothing to do fwrite().
>> 
>> They certainly do, since as you quoted, fwrite is just a utility for
>> looping fputc()-calls.
>
> What are you gibbering about?
>
>        size_t fwrite(const void * restrict ptr,
>                     size_t size, size_t nmemb,
>                     FILE * restrict stream);
>
> There is precisely *nothing* related to the characters one sends to fputc
> in that function declaration. End of. Any attempts to counter my argument
> are, like *ptr, void.

7.19.3 p12:
The byte output functions write characters to the stream as if
by successive calls to the fputc function.

fwrite is one of the byte output functions (7.19.1 p5).

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

No fread and fwrite for wide characters? Lauri Alanko <la@iki.fi> - 2011-11-10 17:26 +0000
  Re: No fread and fwrite for wide characters? James Kuyper <jameskuyper@verizon.net> - 2011-11-10 12:34 -0500
    Re: No fread and fwrite for wide characters? Lauri Alanko <la@iki.fi> - 2011-11-10 17:58 +0000
      Re: No fread and fwrite for wide characters? James Kuyper <jameskuyper@verizon.net> - 2011-11-10 13:38 -0500
        Re: No fread and fwrite for wide characters? Lauri Alanko <la@iki.fi> - 2011-11-10 23:23 +0000
          Re: No fread and fwrite for wide characters? Harald van Dijk <truedfx@gmail.com> - 2011-11-11 09:33 -0800
            Re: No fread and fwrite for wide characters? Lauri Alanko <la@iki.fi> - 2011-11-12 00:09 +0000
          Re: No fread and fwrite for wide characters? Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-11-12 00:28 +0200
            Re: No fread and fwrite for wide characters? Ike Naar <ike@sverige.freeshell.org> - 2011-11-11 22:58 +0000
              Re: No fread and fwrite for wide characters? Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-11-12 14:07 +0200
            Re: No fread and fwrite for wide characters? James Kuyper <jameskuyper@verizon.net> - 2011-11-11 18:00 -0500

csiph-web