diff options
author | paco <paco@voltanet.io> | 2018-06-19 17:59:53 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-19 17:59:53 +0200 |
commit | 5d5ba0185dd63e5443a9c005f8b369b17e82ab03 (patch) | |
tree | 888436e6de484cc8a838d063b68880919f0855bd /lib/frrstr.h | |
parent | Merge pull request #2373 from rubenk/specfile-cleanups (diff) | |
download | frr-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.h | 11 |
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_ */ |