aboutsummaryrefslogtreecommitdiff
path: root/shared/common/loud.c
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2003-09-11 09:04:32 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2003-09-11 09:04:32 +0000
commit49cc44f855c16ae11988e9ff3739fdc01ac8aebe (patch)
tree4a47d1b56d0cda8f8f34965c881c0bba1e4f46fd /shared/common/loud.c
parent53f05d96ff8e49c87977fa91a06ebade8893606e (diff)
*** empty log message ***
svn path=/trunk/externals/miXed/; revision=947
Diffstat (limited to 'shared/common/loud.c')
-rw-r--r--shared/common/loud.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/shared/common/loud.c b/shared/common/loud.c
index 638f431..d5afada 100644
--- a/shared/common/loud.c
+++ b/shared/common/loud.c
@@ -25,6 +25,19 @@ char *loud_symbolname(t_symbol *s, char *nullname)
}
/* LATER move it somewhere else */
+int loud_matchignorecase(char *test, char *pattern)
+{
+ char ct, cp;
+ for (ct = *test, cp = *pattern; ct && cp; ct = *++test, cp = *++pattern)
+ if (ct != cp
+ && ((ct < 'A' || ct > 'z')
+ || ((ct > 'Z' || ct + 32 != cp)
+ && (ct < 'a' || ct - 32 != cp))))
+ return (0);
+ return (ct == cp);
+}
+
+/* LATER move it somewhere else */
char *loud_ordinal(int n)
{
static char buf[16]; /* assuming 10-digit INT_MAX */