summaryrefslogtreecommitdiff
path: root/src/skey/skeyutil.c
blob: b9e56dce4d525f61c9131c322e0877f4684fecb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
}