summaryrefslogtreecommitdiff
path: root/utilities/utmisc.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-01-11 21:25:42 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-01-11 21:25:42 +0000
commit234358d94982312d34c80b868fea481307fb3a48 (patch)
treeb189153d48c3972defb7bf0712af37fb23c7d7bd /utilities/utmisc.c
parent50796274dc74454ca64a6e120552adb2620c3e65 (diff)
Notes
Diffstat (limited to 'utilities/utmisc.c')
-rw-r--r--utilities/utmisc.c40
1 files changed, 39 insertions, 1 deletions
diff --git a/utilities/utmisc.c b/utilities/utmisc.c
index d20ad7e3a1d7a..062c768e72a0f 100644
--- a/utilities/utmisc.c
+++ b/utilities/utmisc.c
@@ -5,7 +5,7 @@
******************************************************************************/
/*
- * Copyright (C) 2000 - 2011, Intel Corp.
+ * Copyright (C) 2000 - 2012, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -466,6 +466,44 @@ AcpiUtStrlwr (
return;
}
+
+
+/******************************************************************************
+ *
+ * FUNCTION: AcpiUtStricmp
+ *
+ * PARAMETERS: String1 - first string to compare
+ * String2 - second string to compare
+ *
+ * RETURN: int that signifies string relationship. Zero means strings
+ * are equal.
+ *
+ * DESCRIPTION: Implementation of the non-ANSI stricmp function (compare
+ * strings with no case sensitivity)
+ *
+ ******************************************************************************/
+
+int
+AcpiUtStricmp (
+ char *String1,
+ char *String2)
+{
+ int c1;
+ int c2;
+
+
+ do
+ {
+ c1 = tolower ((int) *String1);
+ c2 = tolower ((int) *String2);
+
+ String1++;
+ String2++;
+ }
+ while ((c1 == c2) && (c1));
+
+ return (c1 - c2);
+}
#endif