C Programming Language

strncmp()

Syntax:
#include<string.h>
int strncmp( char *str1, char *str2,int n );

                   strncmp(str1,str2,n) compares atmost n charactes of str2 to str1 lexicographically .Returns a negative value if str1<str2; 0 if str1 and str2 are identical; and positive value if str1>str2.

Example:

strncmp() function  
strcmpi() Home stricmp()

c program stats