*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> strncmp (9r)              
Title
Content
Arch
Section
 

strncmp(9r)

Contents


NAME    [Toc]    [Back]

       strncmp - General: Compares two strings, using a specified
       number of characters

SYNOPSIS    [Toc]    [Back]

       int strncmp(
               char *s1,
               char *s2,
               int n );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to a string (an  array  of  characters
       terminated by a null character).  Specifies a pointer to a
       string (an array of characters terminated by a null  character).
  Specifies the number of bytes to be compared.

DESCRIPTION    [Toc]    [Back]

       The strncmp routine compares string s1 to string s2, using
       the number of characters specified in n.

RETURN VALUES    [Toc]    [Back]

       If string s1 is equal to the null character  (  '\0  '  ),
       strncmp  returns the value 0 (zero). Otherwise, it returns
       the difference between the number of characters in s1  and
       s2.

SEE ALSO    [Toc]    [Back]

      
      
       Routines: strcmp(9r)



                                                      strncmp(9r)
[ Back ]
 Similar pages
Name OS Title
bcmp Tru64 General: Compares two byte strings
strcmp Tru64 General: Compares two null-terminated character strings
strlen Tru64 General: Returns the number of characters in a
strcoll Tru64 Compares strings using locale collation
XmStringCompare Tru64 A compound string function that compares two strings
XmStringCompare HP-UX A compound string function that compares two strings
XmStringCompare IRIX A compound string function that compares two strings
puts Linux output of characters and strings
gets Linux input of characters and strings
strings NetBSD print the strings of printable characters in files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service