summaryrefslogtreecommitdiff
path: root/src/skey/skeyutil.c
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-06 17:13:49 -0300
committerPerberos <[email protected]>2011-11-06 17:13:49 -0300
commit13e6e4ab1290cda9426eaedfeda70f7491b6b083 (patch)
tree2b9b2e1eac4cc6a161bea6f2197de4513ff1ddf7 /src/skey/skeyutil.c
downloadmate-terminal-13e6e4ab1290cda9426eaedfeda70f7491b6b083.tar.bz2
mate-terminal-13e6e4ab1290cda9426eaedfeda70f7491b6b083.tar.xz
initial
Diffstat (limited to 'src/skey/skeyutil.c')
-rw-r--r--src/skey/skeyutil.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/skey/skeyutil.c b/src/skey/skeyutil.c
new file mode 100644
index 0000000..b9e56dc
--- /dev/null
+++ b/src/skey/skeyutil.c
@@ -0,0 +1,24 @@
+#include <config.h>
+
+#include <ctype.h>
+
+#include <glib.h>
+
+#include "skeyutil.h"
+
+void skey_sevenbit(char *s)
+{
+ char *p;
+
+ for (p = s; *p; p++)
+ *p &= 0x7f;
+}
+
+void skey_lowcase(char *s)
+{
+ char *p;
+
+ for (p = s; *p; p++)
+ if (g_ascii_isupper(*p))
+ *p = g_ascii_tolower(*p);
+}