scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

strcmp.3 (567B)


      1 .TH strcmp 3
      2 .SH NAME
      3 strcmp - compare two 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 performs a lexicographic comparison of the string at
     12 .I s1
     13 against the string at
     14 .IR s2 .
     15 Neither string is modified during the comparison.
     16 .SH RETURN VALUE
     17 A positive integer is returned if
     18 .I s1
     19 is lexicographically greater than
     20 .IR s2 ,
     21 zero if the two strings are equal,
     22 and a negative integer if
     23 .I s1
     24 is lexicographically less than
     25 .IR s2 .
     26 .SH STANDARDS
     27 ISO/IEC 9899:1999 Section 7.21.4.2