strncmpFunctionLimited comparison of two stringsSynopsisunsigned long strncmp (str1, str2, count)char *str1;char *str2;unsigned count;DescriptionThe strncmp macro compares strings in lexicographic order. Lexicographicorder means that characters are compared based on their internal machinerepresentation. For example, because an ASCII ’A’ is 41 hexadecimal and anASCII ’B’ is 42 hexadecimal, ’A’ is less than ’B’.The count in the synopsis above specifies the maximum number of charactersto be compared.The strings str1 and str2 are compared and a result returned according to thefollowing relations:relation results1 < s2s1 = s2s1 > s2negative integerzeropositive integerDiagnosticsStrings are not required to be NULL terminated or to fit within the arrayboundaries because the comparison is limited to the number of statedcharacters. Less than count characters will be compared if the strings aresmaller than count characters. The comparison is always signed, regardless ofhow the string is declared.Chapter 11: Predefined Macrosstrncmp477