diff options
-rw-r--r-- | firmware/common/strnatcmp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/common/strnatcmp.c b/firmware/common/strnatcmp.c index 84e0d38362..c67bda6b81 100644 --- a/firmware/common/strnatcmp.c +++ b/firmware/common/strnatcmp.c | |||
@@ -1,5 +1,4 @@ | |||
1 | /* -*- mode: c; c-file-style: "k&r" -*- | 1 | /* Based on: |
2 | |||
3 | strnatcmp.c -- Perform 'natural order' comparisons of strings in C. | 2 | strnatcmp.c -- Perform 'natural order' comparisons of strings in C. |
4 | Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net> | 3 | Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net> |
5 | 4 | ||
@@ -28,6 +27,10 @@ | |||
28 | * Eric Sosman pointed out that ctype functions take a parameter whose | 27 | * Eric Sosman pointed out that ctype functions take a parameter whose |
29 | * value must be that of an unsigned int, even on platforms that have | 28 | * value must be that of an unsigned int, even on platforms that have |
30 | * negative chars in their default char type. | 29 | * negative chars in their default char type. |
30 | * | ||
31 | * | ||
32 | * This version is changed to ignore leading zeros, it does not equal to the | ||
33 | * original software. | ||
31 | */ | 34 | */ |
32 | 35 | ||
33 | #include <ctype.h> | 36 | #include <ctype.h> |