Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: new autoplayer interface standard

Author: Keith Ian Price

Date: 23:14:58 09/16/98

Go up one level in this thread


On September 16, 1998 at 09:47:10, Robert Hyatt wrote:

>For portability, I handle this inside crafty.  When I read a line of input,
>I always do something like this:
>
>   if (strchr(buffer,'\r') *strchr(buffer,'\r')=' ';
>
>to remove the return and leave the \n...
>
>otherwise there are problems with dos/windows/macintosh/etc...

I only mentioned it so that there would be a mention in the definition of the
standard. You handle both cases, and I think this is the best way to do it.

kp



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.