From 4fd02fdd42cb389e2b63c7f1fd86377c4780b1d7 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 2 Mar 2009 02:07:13 +0000 Subject: FS#9972 - Simplify strnatcmp. As we do ignore leading zeros (as opposed to the original version), we can remove some unused code. Also, change the header to state that we changed it and do not use the original version. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20166 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/strnatcmp.c | 7 +++++-- 1 file 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 @@ -/* -*- mode: c; c-file-style: "k&r" -*- - +/* Based on: strnatcmp.c -- Perform 'natural order' comparisons of strings in C. Copyright (C) 2000, 2004 by Martin Pool @@ -28,6 +27,10 @@ * Eric Sosman pointed out that ctype functions take a parameter whose * value must be that of an unsigned int, even on platforms that have * negative chars in their default char type. + * + * + * This version is changed to ignore leading zeros, it does not equal to the + * original software. */ #include -- cgit v1.2.3