Author: Uri Blass
Date: 13:15:45 06/29/03
Go up one level in this thread
On June 29, 2003 at 15:49:14, Michel Langeveld wrote:
>I saw that it includes also utility.h is included where resides the function
>rtrim.
>
>Here it is:
>
>void rtrim(char *s)
>{
> for (int lengte = strlen(s)-1; lengte >= 0; lengte--)
> {
> if (s[lengte] == '\n' || s[lengte] == '\t' || s[lengte] == ' ')
> {
> s[lengte] = '\0';
> }
> else
> {
> break;
> }
> }
>}
>
>Let me know if you miss more.
thanks for your posts.
1)I do not know if I will use it.
I use only C and not C++ and I saw in previous post that your code is C++
and I do not like to use code that I do not fully inderstand inspite of the fact
that I probably can do it by modifying the name of my files from .c to .cpp
There is a good reason to modify the name to .cpp because checking bound can
find things better with .cpp files and there was a bug that it could not find
with .c files
Numega told me that the bad behaviour of checking bounds(in not detecting a bug)
under the ANSI C standard is due to the ambigious symbols generated.
They told me that if the code is compiled as a .cpp they know from the symbol
table that the struct hist_t is actualy an 8 byte object but under C the symbol
table only contains the size of the member.
They claim that it is not technically a bug in bound checkers but rather a
limitation of the C language but they will put a request to document the anomaly
in the read me.
2)I already found the bug.
There was some varaible that I need to change to 0 when the search is finsihed
and I did not do it(the result of not changing this varaible is behaviour of
movei that is not optimal and I guess that it may do movei 20 elo weaker).
I have some hundreds of global varaibles and arrays in my program so I decided
that checking every one of them is a lot of time and I looked for varaibles that
I changed recently and found the bug.
Uri
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.