Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: new autoplayer interface standard

Author: Don Dailey

Date: 11:58:50 09/17/98

Go up one level in this thread


On September 17, 1998 at 02:14:58, Keith Ian Price wrote:

>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

The question I would ask is will a dos/windows program read a unix
style line without choking?  If so, I would recommend that either
style is completely acceptable and that all software should be designed
to read either format, and can output  its own native format.

If windows/dos is not that flexible, then it is probably better to
conform to the lowest common denominator and use the dos style,
a unix program will bring in a dos line with no problem and sending
out dos-like output is trivial.

Of course I don't really know how mac's deal with all of this.

- Don





This page took 0.01 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.