strncmp
strncmp(str1,str2,n) returns true if the n first characters of string str1 are the same in str2.
Comparison is case sensitive.
Examples
> strncmp('abc','abd',2)
[ans:true]
> strncmp('abc','Abd',2)
[ans:false]
> strncmp('abc','abd',3)
[ans:false]