diff options
| author | oy <Tom_Adams@web.de> | 2011-06-09 23:28:20 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-06-09 23:28:20 +0200 |
| commit | e1ef01f656fbc9e6d45450bbc8519688c51cc661 (patch) | |
| tree | 79f45de77bd38c3cdd7cdcad0f74f57b0a448133 /src/base/system.h | |
| parent | 69cb197f592be2cc00dfe79603d076fe2779ea55 (diff) | |
| download | zcatch-e1ef01f656fbc9e6d45450bbc8519688c51cc661.tar.gz zcatch-e1ef01f656fbc9e6d45450bbc8519688c51cc661.zip | |
made tab completion for names in chat start with the ones that match on the beginning
Diffstat (limited to 'src/base/system.h')
| -rw-r--r-- | src/base/system.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/base/system.h b/src/base/system.h index aab71bff..de579076 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -825,6 +825,25 @@ char *str_skip_whitespaces(char *str); */ int str_comp_nocase(const char *a, const char *b); +/* + Function: str_comp_nocase_num + Compares up to num characters of two strings case insensitive. + + Parameters: + a - String to compare. + b - String to compare. + num - Maximum characters to compare + + Returns: + <0 - String a is lesser than string b + 0 - String a is equal to string b + >0 - String a is greater than string b + + Remarks: + - Only garanted to work with a-z/A-Z. + - The strings are treated as zero-termineted strings. +*/ +int str_comp_nocase_num(const char *a, const char *b, const int num); /* Function: str_comp |