summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.h
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-12-22 14:52:08 +0100
committerDan McGee <dan@archlinux.org>2011-12-23 21:37:03 +0100
commit92216c5864efccacf2daa3f4f15de3bb479054bb (patch)
treee814870fbae8ab4e953fb29c56af3b2123bae690 /src/pacman/util.h
parent7b2f68cc21df469342cb1caa7ec8fb27005cd2dd (diff)
downloadpacman-92216c5864efccacf2daa3f4f15de3bb479054bb.tar.gz
pacman-92216c5864efccacf2daa3f4f15de3bb479054bb.tar.xz
pacman/util: return size_t from strtrim
Instead of returning the same value as the parameter to this function, return the length of the string, which can be useful to the caller when its non-zero (e.g. to find the end of the string). Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r--src/pacman/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h
index 6ec962ff..62919395 100644
--- a/src/pacman/util.h
+++ b/src/pacman/util.h
@@ -56,7 +56,7 @@ const char *mbasename(const char *path);
char *mdirname(const char *path);
void indentprint(const char *str, size_t indent);
char *strtoupper(char *str);
-char *strtrim(char *str);
+size_t strtrim(char *str);
char *strreplace(const char *str, const char *needle, const char *replace);
alpm_list_t *strsplit(const char *str, const char splitchar);
void string_display(const char *title, const char *string);