Code

uuid plugin: Improve parsing of the dmidecode output.
[collectd.git] / src / common.h
index 2c74436318fecee1f9189bbfb6e658e28531d3f1..ae8e311f9983e8ff63441c0ab2936d287220ae67 100644 (file)
@@ -208,6 +208,13 @@ int strsubstitute (char *str, char c_from, char c_to);
  */
 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