diff --git a/src/common.h b/src/common.h
index 2c74436318fecee1f9189bbfb6e658e28531d3f1..ae8e311f9983e8ff63441c0ab2936d287220ae67 100644 (file)
--- a/src/common.h
+++ b/src/common.h
*/
int strunescape (char *buf, size_t buf_len);
+/**
+ * Removed trailing newline characters (CR and LF) from buffer, which must be
+ * null terminated. Returns the length of the resulting string.
+ */
+__attribute__((nonnull (1)))
+size_t strstripnewline (char *buffer);
+
/*
* NAME
* timeval_cmp