Hi! | But, when your function CompareNames returns 0? As I can see, never... That wasn't really the problem, because variable names cannot be exactly the same. The thing was that when I used strcmp instead of strncmp, it got all messed up for some reason. Bye, Sebastian