strcmp to strncmp