strncmp man page on DigitalUNIX

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

strncmp(9r)							   strncmp(9r)

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

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

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

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

RETURN VALUES
       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
       Routines: strcmp(9r)

								   strncmp(9r)
[top]

List of man pages available for DigitalUNIX

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