strncmp

strncmp -- Binary safe string comparison of the first n characters

Description

int strncmp ( string str1, string str2, int len)