Strcmp

From kwiki

Jump to: navigation, search
This article is written by Konrad, thus using rather nonstandard English:)

strcmp (DNM Script function)

full declaration

int strcmp (string Str1,string Str2,[bool IgnoringCase=FALSE])

return value

int

description

The return value indicates the relation of string1 to string2 as follows:

< 0 string1 less than string2 
0 string1 identical to string2 
> 0 string1 greater than string2 

IgnoringCase: if false, the comparison is case-sensitive.

Personal tools
konradp.com