aboutsummaryrefslogtreecommitdiff
path: root/ssh/string_view.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-07-13 19:26:17 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-07-13 19:26:17 +0200
commitb5f5fdefbbee3ae75bb032774263885c46d63a7f (patch)
tree8f72ed418e68572abe31a80517df2af623135c7a /ssh/string_view.h
parent3fafd0ccefa286fa1b8c3e53e9e835a84d8c9861 (diff)
ssh/client: More ergonomic interface with / commands and focusing
Diffstat (limited to 'ssh/string_view.h')
-rw-r--r--ssh/string_view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh/string_view.h b/ssh/string_view.h
index 659dad4..6c3f47a 100644
--- a/ssh/string_view.h
+++ b/ssh/string_view.h
@@ -33,3 +33,6 @@ struct string_view sv_tokenise_word(struct string_view *line);
// Skips all isspace() at the beginning of the string
void sv_skip_whitespace(struct string_view *line);
+
+// Skips the given number of characters
+void sv_skip(struct string_view *line, size_t num);