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 [EMAIL PROTECTED]
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
_______________________________________________
Gcl-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gcl-devel