Add support for systemf(), formatted system() replacement

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-03-14 10:32:52 +01:00
1 parent 7f3f4df9e9
commit f1a1a21569
7 files changed
+116 -1

No files matched your search

+6
View File
@@ -304,6 +304,12 @@ Generic Functions
Find matching string in an array of strings. Returns index in array
on match, or `-1` on error or not found.
`systemf(fmt, ...)`
Like `system()`, but takes a formatted string as argument. This
greatly simplifies operations that usually consist of composing a
command from parts into a dynamic buffer before calling it.
- `telnet_open(), telnet_close(), telnet_expect()`
Poor mans telnet expect in C. Opens connection to a Telnet service;