Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Tablebase sizes: 6 man? 7? 8? ...

Author: Dann Corbit

Date: 17:44:15 11/17/98

Go up one level in this thread


However, Bob's code is written in ANSI C.  If he switches to a Win32 API, it
fails on all the platforms that *he* uses, since he develops exclusively on
UNIX.  His question about seeking was about fseek(), which is (indeed)
prototyped according to the standard:

 #include <stdio.h>
 int fseek(FILE *stream, long int offset, int whence);

so it is not possible using strictly portable code to seek farther forward than
LONG_MAX nor farther backward than LONG_MIN in a single jump.  So the only way
around the portability problem is to use a database, cut the seeks into smaller
chunks or use machines and/or compilers with long implemented as 64 bits.



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.