strncmp man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

strcmp(9F)		 Kernel Functions for Drivers		    strcmp(9F)

NAME
       strcmp,	strcasecmp, strncasecmp, strncmp - compare two null-terminated
       strings.

SYNOPSIS
       #include <sys/ddi.h>

       int strcmp(const char *s1, const char *s2);

       int strcasecmp(const char *s1, const char *s2);

       int strncasecmp(const char *s1, const char *s2, size_t n);

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

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI).

PARAMETERS
       s1, s2	       Pointers to character strings.

       n	       Count of characters to be compared.

DESCRIPTION
   strcmp()
       The strcmp() function returns 0 if the strings are  the	same,  or  the
       integer	value  of  the	expression (*s1 - *s2) for the last characters
       compared if they differ.

   strcasecmp(), strncasecmp()
       The strcasecmp() and strncasecmp() functions are case-insensitive  ver‐
       sions  of  strcmp() and strncmp(), respectively, described in this sec‐
       tion. They assume the ASCII character set  and  ignore  differences  in
       case when comparing lowercase and uppercase characters.

   strncmp()
       The strncmp() function returns 0 if the first n characters of s1 and s2
       are the same, or (*s1 - *s2) for the last characters compared  if  they
       differ.

RETURN VALUES
       The  strcmp() function returns 0 if the strings are the same, or (*s1 -
       *s2) for the last characters compared if they differ.

       The strcasecmp() and strncasecmp() functions return values in the  same
       fashion as strcmp() and strncmp(), respectively.

       The  strncmp()  function returns 0 if the first n characters of strings
       are the same, or (*s1 - *s2) for the last characters compared  if  they
       differ.

CONTEXT
       These functions can be called from user, interrupt, or kernel context.

SEE ALSO
       Writing Device Drivers

SunOS 5.10			  16 Jan 2006			    strcmp(9F)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net