Hello,
Considering this project:
I try to call a function in benchmark.c file. The existing calls work well in search.c file. But my newer call causes segmentation fault. I suspect there can be some sort of initializing code. I tried various ideas, none worked. part of code:
benchmark.c:
Code:
void benchmark(Position *current, char *str)
{
[CODE BEFORE]
strcpy(buf, "fen ");
strncat(buf, fens[i], 127 - 4);
buf[127] = 0;
position(&pos, buf);
//evaluate(&pos); // causes problems, from evaluate.h
[CODE AFTER]
}
Can you help me correctly call this function ?