thanks, that was the problem.
I'm not used to C but I'll get it eventually.