diff options
author | Alexander Færøy <ahf@irssi.org> | 2010-04-03 20:09:37 +0000 |
---|---|---|
committer | ahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2010-04-03 20:09:37 +0000 |
commit | 8728207191dc544aa473c322fbb779a032aa6d62 (patch) | |
tree | fad0fb7b66746551a9593d686fe4c43f76422b7f /src/core/misc.c | |
parent | df1d7a78147805119f045036fc87c23e2c5c8094 (diff) | |
download | irssi-8728207191dc544aa473c322fbb779a032aa6d62.zip |
deprecated glib strup/down fixes from exg.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5138 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/misc.c')
-rw-r--r-- | src/core/misc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/misc.c b/src/core/misc.c index e0df07e5..986e10f3 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -943,3 +943,21 @@ int parse_size(const char *size, int *bytes) return TRUE; } + +char *ascii_strup(char *str) +{ + char *s; + + for (s = str; *s; s++) + *s = g_ascii_toupper (*s); + return str; +} + +char *ascii_strdown(char *str) +{ + char *s; + + for (s = str; *s; s++) + *s = g_ascii_tolower (*s); + return str; +} |