ref: 65f0f47558b878892b5e2b8b77bc3c4f958abbe0
parent: a2d5cf59274f3a5bc5011f9aa35fb99c5a04771c
author: robs <robs>
date: Sun Apr 29 06:18:58 EDT 2007
Tidying
--- a/src/misc.c
+++ b/src/misc.c
@@ -377,6 +377,12 @@
}
#endif
+sox_bool strcaseends(char const * str, char const * end)
+{
+ size_t str_len = strlen(str), end_len = strlen(end);
+ return str_len >= end_len && !strcasecmp(str + str_len - end_len, end);
+}
+
#ifndef HAVE_STRDUP
/*
* Portable strdup() function
--- a/src/sox.c
+++ b/src/sox.c
@@ -281,12 +281,6 @@
}
}
-static sox_bool strcaseends(char const * str, char const * end)
-{
- size_t str_len = strlen(str), end_len = strlen(end);
- return str_len >= end_len && !strcasecmp(str + str_len - end_len, end);
-}
-
static sox_bool is_playlist(char const * filename)
{
return strcaseends(filename, ".m3u") || strcaseends(filename, ".pls");
--- a/src/sox_i.h
+++ b/src/sox_i.h
@@ -91,6 +91,8 @@
int strncasecmp(char const * s1, char const * s2, size_t n);
#endif
+sox_bool strcaseends(char const * str, char const * end);
+
#ifndef HAVE_STRDUP
char *strdup(const char *s);
#endif