Add strtrim(), trims leading and trailing white-space from a string

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-03-27 08:05:36 +01:00
1 parent d4b554ccdc
commit f5808e557e
4 files changed
+78 -1

No files matched your search

+5
View File
@@ -319,6 +319,11 @@ Generic Functions
match, or `-1` on error or not found. `strnmatch()` takes an extra arg
to compare only `len` number of characters from `str`.
- `strtrim(str)`
Trims a string from any leading and trailing white-space, returns the
trimmed result in the same buffer.
- `systemf(fmt, ...)`
Like `system()`, but takes a formatted string as argument. This