Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: C and Linux

Author: Robert Hyatt

Date: 12:15:20 04/08/02

Go up one level in this thread


On April 08, 2002 at 13:56:02, Frank Phillips wrote:

>I am looking for an alternative C command (in Linux) to
>
>cin.rdbuf()->in_avail()
>
>available in C++, which I currently use to test for input while pondering.
>
>Not because I am insane, but I need to remove C++ I/O so that I can compile my
>program with the Intel compiler under Mandrake 8.2.   (There seems to a problem
>with the substitute headers in this version of Mandrake.).
>
>As as aside, as I have removed progressive amount of C++ I/O, the executable has
>got smaller and slower.
>
>Frank


What does "in_avail()" do???

If you are testing for input and reading it when available, look at the
Crafty source file utility.c, and examine "CheckInput()" to see how to use
select() in Unix...



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.