strcmp.3 - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
strcmp.3 (721B)
---
1 .TH strcmp 3
2 .SH NAME
3 strcmp - compare strings
4 .SH SYNOPSIS
5 #include <string.h>
6
7 int strcmp(const char *s1, const char *s2)
8 .SH DESCRIPTION
9 The
10 .BR strcmp ()
11 function compares the string
12 pointed to by
13 .I s1
14 to the string pointed to by
15 .IR s2 .
16 .PP
17 The value returned shall be used to determine
18 if a string is lexicographically
19 greater than, lesser than or equal to
20 the other string.
21 .PP
22 The function shall not modify either of the strings.
23 .SH RETURN VALUE
24 The
25 .BR strcmp ()
26 function shall return an integer
27 greater than, equal to or lesser than 0,
28 if the string pointed to by
29 .I s1
30 is greater than, equal to or lesser than
31 the string pointed to by
32 .IR s2 ,
33 respectively.
34 .SH STANDARDS
35 ISO/IEC 9899:1999 Section 7.21.4.2