Everything

strncmp


Character string comparison with number of characters specified

[Classification]

Standard library

[Syntax]

#include <string.h>

int __far strncmp(const char __near *s1, const char __near *s2, size_t n);

int __far _COM_strncmp_ff(const char __far *s1, const char __far *s2, size_t n);

[Return value]

Returns an value greater than, equal to, or less than 0, depending on whether the array indicated by s1 is greater than, equal to, or less than the array indicated by s2.

[Description]

This function compares up to n characters of the array indicated by s1 with characters of the array indicated by s2 (string following the null character is not compared).