summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-06 20:57:36 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-06 20:57:36 -0800
commit3317e5039f5c940225dffa5c735507e897c230b8 (patch)
treeae962e0c27a591dfea7c5cf51d771043ac892afe /src/buffer.h
parente76ccb29825b42c69c308ab3119c3b5ef68b8027 (diff)
buffer: added strbuf_rtrim function.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 1bc1eee..63d6202 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -107,6 +107,7 @@ int strbuf_strchr(const strbuf *buf, int c, int pos);
int strbuf_strrchr(const strbuf *buf, int c, int pos);
void strbuf_drop(strbuf *buf, int n);
void strbuf_truncate(strbuf *buf, int len);
+void strbuf_rtrim(strbuf *buf);
void strbuf_trim(strbuf *buf);
void strbuf_normalize_whitespace(strbuf *s);
void strbuf_unescape(strbuf *s);