Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Phil Carmody <thefatphil_demunged@yahoo.co.uk> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: No fread and fwrite for wide characters? |
| Date | 2011-11-12 14:07 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <87d3cxczn3.fsf@bazspaz.fatphil.org> (permalink) |
| References | (2 earlier) <j9h3bu$p8k$1@oravannahka.helsinki.fi> <4EBC1A22.5090407@verizon.net> <j9hmdp$at8$1@oravannahka.helsinki.fi> <87k476cn0v.fsf@bazspaz.fatphil.org> <slrn3vfsjbra5h.8dt.ike@sverige.freeshell.org> |
Ike Naar <ike@sverige.freeshell.org> writes: > 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). You're right, and I retract and apologise. In this case, I believe I've probably misinterpreted something said way earlier in the thread which the above would also contradict, and which when I saw going unchallenged I took as true. Maybe I'm misingerpreting the *whole thread*, as that p12 seems to be the immediate answer to everything. Thanks for hunting it out and so succinctly correcting my unacceptable error. Phil -- Unix is simple. It just takes a genius to understand its simplicity -- Dennis Ritchie (1941-2011), Unix Co-Creator
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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