30.12.2011, 23:42
I think the problem is the "10" in your strcmp lines.
Remove that parameter (it's an optional parameter) and try again
The 10 means it will compare the first 10 characters, but there are less than 10 characters. Maybe that's why it also returns 0.
Remove that parameter (it's an optional parameter) and try again
The 10 means it will compare the first 10 characters, but there are less than 10 characters. Maybe that's why it also returns 0.