strncmp implementation.