Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: fen parser

Author: Omid David Tabibi

Date: 11:38:28 11/16/03

Go up one level in this thread


On November 16, 2003 at 12:01:26, Andreas Guettinger wrote:

>I'm currently rewriting my engine (1st revision) and redesign it for multiple
>threads. Currently I'm stuck again in the fen parser. I want to split the fen
>that is stored in a string into several tokens. Now I don't know, do I have to
>use strtok_r() or is strtok() still ok?
>Thanks for any help.
>

Take a look at str.h header I wrote a few years ago (and updated it several
times since):

http://www.cs.biu.ac.il/~davoudo/str.h

The function strread is just what you need.

The functions strfile, strspc, and strclean are quite handy for dealing with
text files like pgn.


>regards
>Andy



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.