Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Newsgroups | comp.lang.c, comp.unix.programmer, comp.os.ms-windows.programmer.win32 |
| Subject | Re: Function to determine the number of chars in a FILE buffer |
| Date | 2011-09-01 11:02 +0000 |
| Organization | Dis (not Dat) Organisation |
| Message-ID | <j3nool$e4p$1@reversiblemaps.ath.cx> (permalink) |
| References | <5303ab8c-2dca-4c04-bb88-49e26fc92f96@n11g2000yqh.googlegroups.com> <4E5EBC04.3060103@verizon.net> <a9aa1617-b56b-4da8-9eba-48c094fe0f79@a13g2000yqd.googlegroups.com> |
Cross-posted to 3 groups.
On 2011-09-01, tm <thomas.mertes@gmx.at> wrote: > Without fbufsize() even setting a file to no buffering with > setvbuf() will probably not lead to a solution: An ungetc() may > have happened and there is no way to find out if the next char > read with getc() will be the one provided with ungetc(). Since > a getc() after an ungetc() will not block inputReady() should > return 1 in this case. basically you can't do non blockin IO using the stdio library in a way that's likely to continue to work. try somethine else (eg: glib ) http://developer.gnome.org/glib/stable/glib-IO-Channels.html -- ⚂⚃ 100% natural --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Function to determine the number of chars in a FILE buffer tm <thomas.mertes@gmx.at> - 2011-08-31 15:43 -0700
Re: Function to determine the number of chars in a FILE buffer James Kuyper <jameskuyper@verizon.net> - 2011-08-31 18:56 -0400
Re: Function to determine the number of chars in a FILE buffer Angel <angel+news@spamcop.net> - 2011-09-01 06:25 +0000
Re: Function to determine the number of chars in a FILE buffer tm <thomas.mertes@gmx.at> - 2011-09-01 00:23 -0700
Re: Function to determine the number of chars in a FILE buffer Robert Wessel <robertwessel2@yahoo.com> - 2011-09-01 03:27 -0500
Re: Function to determine the number of chars in a FILE buffer James Kuyper <jameskuyper@verizon.net> - 2011-09-01 06:58 -0400
Re: Function to determine the number of chars in a FILE buffer Keith Thompson <kst-u@mib.org> - 2011-09-01 08:29 -0700
Re: Function to determine the number of chars in a FILE buffer Kenneth Brody <kenbrody@spamcop.net> - 2011-09-01 14:37 -0400
Re: Function to determine the number of chars in a FILE buffer gordonb.nfrza@burditt.org (Gordon Burditt) - 2011-09-02 21:58 -0500
Re: Function to determine the number of chars in a FILE buffer tm <thomas.mertes@gmx.at> - 2011-08-31 23:54 -0700
Re: Function to determine the number of chars in a FILE buffer Jasen Betts <jasen@xnet.co.nz> - 2011-09-01 11:02 +0000
Re: Function to determine the number of chars in a FILE buffer tm <thomas.mertes@gmx.at> - 2011-09-01 05:44 -0700
Re: Function to determine the number of chars in a FILE buffer David Schwartz <davids@webmaster.com> - 2011-09-01 04:41 -0700
Re: Function to determine the number of chars in a FILE buffer Ike Naar <ike@iceland.freeshell.org> - 2011-09-01 04:37 +0000
Re: Function to determine the number of chars in a FILE buffer Mark Storkamp <mstorkamp@yahoo.com> - 2011-09-01 08:23 -0500
csiph-web