Author: Carlos Magno
Date: 13:44:04 01/12/05
Hi, In the UCI protocol specifications Stefan Meyer-Kahlen writes: “* the engine must always be able to process input from stdin, even while thinking.” This post to me an intriguing question: “How can I write a routine (in C language) that can read the stdin without been blocked, i.e., return the control to the program until it doesn’t read an entire line?” Using the standard stdio routines in C language I’m not be able to find a way of doing that. But the fact is, almost all programs that I had tested (obviously) respect this requirement. So, can anybody give a hint how can I do that? I appreciate any help. Thanks in advance, Carlos Magno
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.