aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-12-22 17:25:00 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-01-30 15:42:08 +0100
commitde73d9618815b2ff0c19198b4fede0bc60f00d4e (patch)
tree6be0e8c9d4b8c98d04aa743819ad3210f5e27155 /src/utils.c
parentef961f49275ae4cee5d91959f5af5f13b9fdf965 (diff)
downloadcalcurse-de73d9618815b2ff0c19198b4fede0bc60f00d4e.tar.gz
calcurse-de73d9618815b2ff0c19198b4fede0bc60f00d4e.zip
Use strncasecmp() for case-insensitive comparison
Instead of converting everything to upper case and then using strncmp(), use strncasecmp() which does case-insensitive comparison out of the box. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/utils.c b/src/utils.c
index 0826f89..056c39b 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -845,14 +845,6 @@ int parse_duration(const char *string, unsigned *duration)
return 1;
}
-void str_toupper(char *s)
-{
- if (!s)
- return;
- for (; *s; s++)
- *s = toupper(*s);
-}
-
void file_close(FILE * f, const char *pos)
{
EXIT_IF((fclose(f)) != 0, _("Error when closing file at %s"), pos);