function

strnatcmp . string . sncode

VERSIONlatest String comparisons using a natural order algorithm.

STRNATCMP(1e)

NAME

strnatcmp - Does string comparisons using a "natural order" algorithm.

SYNOPSIS

strnatcmp(str1,str2)

PARAMETERS

str1
The first string.
str2
The second string.

RETURN

Similar to other string comparison functions, this one returns < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.

EXAMPLES

in:  res=<{strnatcmp("img12.png","img2.png")}>.
out: res=1.

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>