summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-01-08 17:05:27 +0100
committerportix <portix@gmx.net>2012-01-08 17:05:27 +0100
commit4d05555a25fa4e63e17b57d9ce9afa720bde20fe (patch)
tree8a8e55a84b181afb4c36b9a63335da64dafa6207 /src/util.c
parentc5c5f84a082075ccd5a77df8203fd8ede3aa19f3 (diff)
downloaddwb-4d05555a25fa4e63e17b57d9ce9afa720bde20fe.zip
Remove toggalbe unbound setting shortcuts, introducing set and toggle_setting instead
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 60b813f4..658b899d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -698,5 +698,11 @@ util_strlen_trailing_space(const char *str) {
int len;
for (len=0; *str != '\0'; str++, len++);
return len;
+}
+const char *
+util_str_chug(const char *str) {
+ while (g_ascii_isspace(*str))
+ str++;
+ return str;
}