File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / strncmp
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



strncmp()                String Function                strncmp()




Compare two strings

#include <string.h>
iinntt ssttrrnnccmmpp(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2, _n)
cchhaarr *_s_t_r_i_n_g_1, *_s_t_r_i_n_g_2; uunnssiiggnneedd _n;

strncmp compares  lexicographically the first n  bytes of string1
with string2.   Comparison ends when n  bytes have been compared,
or a null character encountered, whichever occurs first.  strncmp
returns zero if the  strings are identical, returns a number less
than zero if  string1 occurs earlier alphabetically than string2,
and returns a number greater  than zero if it occurs later.  This
routine is compatible with the ordering routine needed by qsort.

***** Example *****

For an example of this function, see the entry for ssttrrnnccppyy.

***** See Also *****

strcmp(), string functions, string.h



































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.