SysTutorials

Linux Manual Pages › Section 9

strncmp(9)

strncmp - Compare two length-limited strings

Synopsis

int strncmp(const char *cs, const char *ct, size_t count);

Arguments

cs

One string

ct

Another string

count

The maximum number of bytes to compare

Copyright