Display and control your Android device
Fix sc_str_truncate() documentation
Romain Vimontc8d0f5cdeb75
diff --git a/app/src/util/str.h b/app/src/util/str.hindex b81764ef..dfe0cb30 100644--- a/app/src/util/str.h+++ b/app/src/util/str.h@@ -106,10 +106,10 @@ sc_str_wrap_lines(const char *input, unsigned columns, unsigned indent);/*** Truncate the data after any of the characters from `endchars`*- * An '\0' is always written at the end of the data, even if no newline- * character is encountered.+ * An '\0' is always written at the end of the data string, even if no+ * character from `endchars` is encountered.*- * Return the size of the resulting line.+ * Return the size of the resulting string (as strlen() would return).*/size_tsc_str_truncate(char *data, size_t len, const char *endchars);