diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2006-01-28 21:54:43 +0100 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2006-01-28 21:54:43 +0100 |
commit | 16b7d1d595749bbdf8c102dddc706387dbf3d920 (patch) | |
tree | 9890819d4b43859a00d14653d7aa2823188c230c /strutil.h | |
parent | 096f494a778f83317db75632e6bc5c45bd5d521a (diff) | |
download | dctrl-tools-16b7d1d595749bbdf8c102dddc706387dbf3d920.tar.gz |
Import 2.4
Diffstat (limited to 'strutil.h')
-rw-r--r-- | strutil.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |