summaryrefslogtreecommitdiff
path: root/lib/frrstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frrstr.h')
-rw-r--r--lib/frrstr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/frrstr.h b/lib/frrstr.h
index 2454771122..891a3f337c 100644
--- a/lib/frrstr.h
+++ b/lib/frrstr.h
@@ -97,4 +97,15 @@ void frrstr_strvec_free(vector v);
*/
bool begins_with(const char *str, const char *prefix);
+/*
+ * Check the string only contains digit characters.
+ *
+ * str
+ * string to check for digits
+ *
+ * Returns:
+ * 1 str only contains digit characters, 0 otherwise
+ */
+int all_digit(const char *str);
+
#endif /* _FRRSTR_H_ */