Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: fen parser

Author: Russell Reagan

Date: 10:19:46 11/16/03

Go up one level in this thread


On November 16, 2003 at 13:08:36, Dieter Buerssner wrote:

>Russel, you probably missed the point. strok() (perhaps the only function in the
>Standard C library) will not be thread safe. Repeated calls to strok must
>remember the state somehow. So when different threads use this function, there
>will be problems.

Okay, I see. It seems to me like writing this portion in C++ would be much
better, with strings and arrays that can be resized automatically, and there
would be no thread issues. There is no need to deal with null-terminated
character arrays anymore, especially when speed is not an issue at all, which is
the case with a FEN parser.



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.