summaryrefslogtreecommitdiffstats
path: root/lib/frrstr.h
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-19 17:59:53 +0200
committerpaco <paco@voltanet.io>2018-06-19 17:59:53 +0200
commit5d5ba0185dd63e5443a9c005f8b369b17e82ab03 (patch)
tree888436e6de484cc8a838d063b68880919f0855bd /lib/frrstr.h
parentMerge pull request #2373 from rubenk/specfile-cleanups (diff)
downloadfrr-5d5ba0185dd63e5443a9c005f8b369b17e82ab03.tar.xz
frr-5d5ba0185dd63e5443a9c005f8b369b17e82ab03.zip
bgpd, lib, ospfd, zebra: all_digit moved to frrstr
This solves a pending FIXME Signed-off-by: F. Aragon <paco@voltanet.io>
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 245477112..891a3f337 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_ */