strnatcmp

strnatcmp -- String comparisons using a "natural order" algorithm

Description

int strnatcmp ( string str1, string str2)




The code above will generate the following output:



For more information see: Martin Pool's Natural Order String Comparison page.