From aaf8e2bc8e02d37fb132c8acd7c2a8fe82c15117 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 29 Sep 2010 00:53:53 +0200 Subject: cleaned up demo listing and fixed its sorting. Closes #73 --- src/base/system.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/base/system.h') diff --git a/src/base/system.h b/src/base/system.h index 2ef7a9f3..f71a03ec 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -829,6 +829,24 @@ int str_comp(const char *a, const char *b); */ int str_comp_num(const char *a, const char *b, const int num); +/* + Function: str_comp_filenames + Compares two strings case sensitive, digit chars will be compared as numbers. + + Parameters: + a - String to compare. + b - String to compare. + + Returns: + <0 - String a is lesser then string b + 0 - String a is equal to string b + >0 - String a is greater then string b + + Remarks: + - The strings are treated as zero-termineted strings. +*/ +int str_comp_filenames(const char *a, const char *b); + /* Function: str_find_nocase Finds a string inside another string case insensitive. -- cgit 1.4.1