Name

strcmp —

Synopsis

int strcmp(str1, str2);
string str1;
string str2;

Description

Compares string str1 with string str2

Parameters

str1

The first string

str2

The second string

Returns

A positive integer if s1 > s2, 0 if s1 == s2, a negative integer if s1 s2

See Also

method.ansi.strncmp