Query: strncmp
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
strncmp(9r) strncmp(9r)NAMEstrncmp - General: Compares two strings, using a specified number of charactersSYNOPSISint strncmp( char *s1, char *s2, int n );ARGUMENTSSpecifies a pointer to a string (an array of characters terminated by a null character). Specifies a pointer to a string (an array of characters terminated by a null character). Specifies the number of bytes to be compared.DESCRIPTIONThe strncmp routine compares string s1 to string s2, using the number of characters specified in n.RETURN VALUESIf string s1 is equal to the null character ( ' ' ), strncmp returns the value 0 (zero). Otherwise, it returns the difference between the number of characters in s1 and s2.SEE ALSORoutines: strcmp(9r) strncmp(9r)
Related Man Pages |
---|
strcasecmp(9f) - sunos |
strcmp(3) - mojave |
strcmp(3) - freebsd |
strncmp(3) - netbsd |
strcmp(3) - osx |
Similar Topics in the Unix Linux Community |
---|
Print specific pattern line in c++ |
Changing the way arguments are read from program |
Merge two strings by overlapped region |
C shell program |