xref: /386bsd/usr/share/man/cat3/strcmp.0 (revision a2142627)
1STRCMP(3)                 386BSD Programmer's Manual                 STRCMP(3)
2
3NNAAMMEE
4     ssttrrccmmpp - compare strings
5
6SSYYNNOOPPSSIISS
7     ##iinncclluuddee <<ssttrriinngg..hh>>
8
9     _i_n_t
10     ssttrrccmmpp(_c_o_n_s_t _c_h_a_r *_s_1, _c_o_n_s_t _c_h_a_r *_s_2)
11
12     _i_n_t
13     ssttrrnnccmmpp(_c_o_n_s_t _c_h_a_r *_s_1, _c_o_n_s_t _c_h_a_r *_s_2, _s_i_z_e__t _l_e_n)
14
15DDEESSCCRRIIPPTTIIOONN
16     The ssttrrccmmpp() and ssttrrnnccmmpp() functions lexicographically compare the null-
17     terminated strings _s_1 and _s_2.
18
19RREETTUURRNN VVAALLUUEESS
20     The ssttrrccmmpp() and ssttrrnnccmmpp() return an integer greater than, equal to, or
21     less than 0, according as the string _s_1 is greater than, equal to, or
22     less than the string _s_2. The comparison is done using unsigned
23     characters, so that `\200' is greater than `\0'.
24
25     The ssttrrnnccmmpp() compares not more than _l_e_n characters.
26
27SSEEEE AALLSSOO
28     bcmp(3),  memcmp(3),  strcasecmp(3),  strcoll(3),  strxfrm(3)
29
30SSTTAANNDDAARRDDSS
31     The ssttrrccmmpp() and ssttrrnnccmmpp() functions conform to ANSI C3.159-1989 (``ANSI
32     C'').
33
34BSD Experimental                 June 29, 1991                               1
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67