strcmp.3

MudOS_0.9.18/doc/efuns/strings/strcmp.3 · 654 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

.\"determines the lexical relationship between two strings.
.TH strcmp 3

.SH NAME
strcmp() - determines the lexical relationship between two strings.

.SH SYNOPSIS
int strcmp(string one, string two);

.SH DESCRIPTION
This implementatin of strcmp() is identical to the one found in C libraries.
If string one lexically precedes string two, then strcmp() returns a number
less than 0.  If the two strings have the same value, strcmp() returns 0.
If string two lexically precedes string one, then strcmp() returns a number
greater than 0.  This efunction is particularly useful in the compare
functions needed by sort_array(3).

.SH SEE ALSO
sort_array(3)

Site Stats

Snippets: 1791
Codebases: 571