summaryrefslogtreecommitdiff
path: root/strutil.h
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2006-01-28 21:54:43 +0100
committerAntti-Juhani Kaijanaho <ajk@debian.org>2006-01-28 21:54:43 +0100
commit16b7d1d595749bbdf8c102dddc706387dbf3d920 (patch)
tree9890819d4b43859a00d14653d7aa2823188c230c /strutil.h
parent096f494a778f83317db75632e6bc5c45bd5d521a (diff)
downloaddctrl-tools-16b7d1d595749bbdf8c102dddc706387dbf3d920.tar.gz
Import 2.4
Diffstat (limited to 'strutil.h')
-rw-r--r--strutil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/strutil.h b/strutil.h
index c442169..431e9e1 100644
--- a/strutil.h
+++ b/strutil.h
@@ -36,6 +36,9 @@ const char * left_trimmed(const char * s);
/* Mutate s and trim whitespace off its right end. */
void trim_right(char * s);
+/* Remove a trailing newline, if any. */
+void chomp(char *);
+
/* Chop off everything after and including the first comchar in line.
This mutates line! */
static inline void chop_comment(char * line, char comchar)