summaryrefslogtreecommitdiff
path: root/lib/misc.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-01-09 04:07:49 +0000
committerjbj <devnull@localhost>2001-01-09 04:07:49 +0000
commit424793073c381d75d75bd1b4787d153ba16fd4b1 (patch)
tree6af28fc769beaee3924c7f040e47dcc89cd4b2bb /lib/misc.h
parent330737d2fca4f68061e481c25b7793d309e98fb0 (diff)
downloadlibrpm-tizen-424793073c381d75d75bd1b4787d153ba16fd4b1.tar.gz
librpm-tizen-424793073c381d75d75bd1b4787d153ba16fd4b1.tar.bz2
librpm-tizen-424793073c381d75d75bd1b4787d153ba16fd4b1.zip
- tsorted packages processed in successor count order.
- fix: resurrect --excludepath (#19666). CVS patchset: 4418 CVS date: 2001/01/09 04:07:49
Diffstat (limited to 'lib/misc.h')
-rw-r--r--lib/misc.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/misc.h b/lib/misc.h
index 56f60b4f7..c85ec4613 100644
--- a/lib/misc.h
+++ b/lib/misc.h
@@ -24,8 +24,19 @@ extern "C" {
void freeSplitString( /*@only@*/ char ** list);
/**
- */
-void stripTrailingSlashes(char * str) /*@modifies *str @*/;
+ * Remove occurences of trailing character from string.
+ * @param s string
+ * @param c character to strip
+ * @return string
+ */
+/*@unused@*/ static inline char * stripTrailingChar(char * s, char c)
+ /*@modifies *s */
+{
+ char * t;
+ for (t = s + strlen(s) - 1; *t == c && t >= s; t--)
+ *t = '\0';
+ return s;
+}
/**
*/