Manpage of STRCMP

Google
Web www.fiveanddime.net

STRCMP

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

5.16 `strcmp'--character string compare

 

SYNOPSIS


     #include <string.h>
     int strcmp(const char *A, const char *B);  

DESCRIPTION

`strcmp' compares the string at A to the string at B.

 

RETURNS

If `*A' sorts lexicographically after `*B', `strcmp' returns a number greater than zero. If the two strings match, `strcmp' returns zero. If `*A' sorts lexicographically before `*B', `strcmp' returns a number less than zero.

 

PORTABILITY

`strcmp' is ANSI C.


   `strcmp' requires no supporting OS subroutines.

 

SEE ALSO

strcmp is part of the libc library. The full documentation for libc is maintained as a Texinfo manual. If info and libc are properly installed at your site, the command
info libc

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:31 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net