summaryrefslogtreecommitdiff
path: root/lib/frrstr.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-11-08 16:30:46 +0200
committerGitHub <noreply@github.com>2023-11-08 16:30:46 +0200
commit448f75e56d0792aa44a321e83825c28534d1af18 (patch)
treeef59987e7a2dfab5039cd923908fa8f40087e46e /lib/frrstr.h
parent85a80ba5aab3bb0fdffe6b17de8b5c09de66d985 (diff)
parentbec10915a4a36c392145c6d9013904a928cf7855 (diff)
Merge pull request #14525 from LabNConsulting/chopps/mgmtd-simplify-xpaths
chopps/mgmtd simplify xpaths
Diffstat (limited to 'lib/frrstr.h')
-rw-r--r--lib/frrstr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/frrstr.h b/lib/frrstr.h
index 19ba09e213..9a4fe257a2 100644
--- a/lib/frrstr.h
+++ b/lib/frrstr.h
@@ -3,6 +3,7 @@
* FRR string processing utilities.
* Copyright (C) 2018 Cumulus Networks, Inc.
* Quentin Young
+ * Copyright (c) 2023, LabN Consulting, L.L.C.
*/
#ifndef _FRRSTR_H_
@@ -166,6 +167,13 @@ int all_digit(const char *str);
*/
char *frrstr_hex(char *buff, size_t bufsiz, const uint8_t *str, size_t num);
+
+/*
+ * Advance past a given char `skipc` in a string, while honoring quoting and
+ * backslash escapes (i.e., ignore `skipc` which occur in quoted sections).
+ */
+const char *frrstr_skip_over_char(const char *s, int skipc);
+
#ifdef __cplusplus
}
#endif