gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Maxima] [Gcl-devel] Re: windows-only read patch


From: Camm Maguire
Subject: Re: [Maxima] [Gcl-devel] Re: windows-only read patch
Date: Tue, 01 May 2007 18:15:54 -0400
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigory ōmae) APEL/10.3 Emacs/21.2 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)

Thanks so much Vadim!  How about this?

Take care,

int
mingwlisten(FILE *fp) {

  int c = 0;
  if ((fp)->_IO_read_ptr >= (fp)->_IO_read_end) {
    ioctlsocket(fileno(fp), FIONREAD, &c);
    if (c<=0)
      return 1;
  }
  return 0;
}
-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]