Annotated edit history of
strncmp(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
STRCMP |
|
|
2 |
!!!STRCMP |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
CONFORMING TO |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
strcmp, strncmp - compare two strings |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__#include |
|
|
18 |
__''s1''__, const char *__''s2''__); |
|
|
19 |
int strncmp(const char *__''s1''__, const char *__''s2''__, size_t__ ''n''__); |
|
|
20 |
__ |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
The __strcmp()__ function compares the two strings |
|
|
25 |
''s1'' and ''s2''. It returns an integer less than, |
|
|
26 |
equal to, or greater than zero if ''s1'' is found, |
|
|
27 |
respectively, to be less than, to match, or be greater than |
|
|
28 |
''s2''. |
|
|
29 |
|
|
|
30 |
|
|
|
31 |
The __strncmp()__ function is similar, except it only |
|
|
32 |
compares the first ''n'' characters of |
|
|
33 |
''s1''. |
|
|
34 |
!!RETURN VALUE |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
The __strcmp()__ and __strncmp()__ functions return an |
|
|
38 |
integer less than, equal to, or greater than zero if |
|
|
39 |
''s1'' (or the first ''n'' bytes thereof) is found, |
|
|
40 |
respectively, to be less than, to match, or be greater than |
|
|
41 |
''s2''. |
|
|
42 |
!!CONFORMING TO |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
SVID 3, POSIX, BSD 4.3, ISO 9899 |
|
|
46 |
!!SEE ALSO |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
bcmp(3), memcmp(3), strcasecmp(3), |
|
|
50 |
strncasecmp(3), strcoll(3) |
|
|
51 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.