Code

utils error, strbuf: Added sdb_error_chomp(), sdb_strbuf_chomp().
[sysdb.git] / src / include / utils / error.h
index 487b6e4ffcaa98dffd1202e5667c102fdfcd960e..33731e129e72a2250f7b7d1ecbe25922359fc56d 100644 (file)
@@ -91,6 +91,13 @@ sdb_error_set(const char *fmt, ...);
 int
 sdb_error_append(const char *fmt, ...);
 
+/*
+ * sdb_error_chomp:
+ * Remove all consecutive newline characters at the end of the error message.
+ */
+int
+sdb_error_chomp(void);
+
 /*
  * sdb_error_log:
  * Log the current error message with the specified priority. See sdb_log for