summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-01-03 11:23:30 +0100
committerportix <portix@gmx.net>2012-01-03 11:23:30 +0100
commitf224f93a7e9bd6ece4d81ad81826566a8ef2da38 (patch)
tree2f8cb7a12f67522ebcc5b3b001698170113e6e65 /src/util.c
parentabbe6267ef09fc0a78f677355a3ac4ce1d96c62a (diff)
downloaddwb-f224f93a7e9bd6ece4d81ad81826566a8ef2da38.zip
Complete urls in command mode
--HG-- branch : experimental
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index d736952c..f75d3b85 100644
--- a/src/util.c
+++ b/src/util.c
@@ -680,3 +680,10 @@ util_strcasestr(const char *haystack, const char *needle) {
}
return NULL;
}
+int
+util_strlen_trailing_space(const char *str) {
+ int len;
+ for (len=0; *str != '\0'; str++, len++);
+ return len;
+
+}