diff options
author | 2015-06-07 17:37:34 +0200 | |
---|---|---|
committer | 2015-06-07 17:37:34 +0200 | |
commit | b6ce8ee991c7e14ca214a2931bfbc4e4a5a0dc0f (patch) | |
tree | da1e239053b7bfd9e841a103bbb36aefb71c4e7f /src/lib/util/opresolv.c | |
parent | b6a4cf45ca6fdf842b319806d61d638cf2d8b2d2 (diff) |
Licenses for Raphael Nabet (nw)
Diffstat (limited to 'src/lib/util/opresolv.c')
-rw-r--r-- | src/lib/util/opresolv.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/lib/util/opresolv.c b/src/lib/util/opresolv.c index 0cfa1030932..0dd9252d7b6 100644 --- a/src/lib/util/opresolv.c +++ b/src/lib/util/opresolv.c @@ -536,14 +536,31 @@ optreserr_t option_resolution_isvalidvalue(const char *specification, int option return OPTIONRESOLUTION_ERROR_PARAMOUTOFRANGE; } - +/** + * @fn int option_resolution_contains(const char *specification, int option_char) + * + * @brief Option resolution contains. + * + * @param specification The specification. + * @param option_char The option character. + * + * @return An int. + */ int option_resolution_contains(const char *specification, int option_char) { return strchr(specification, option_char) != NULL; } - +/** + * @fn const char *option_resolution_error_string(optreserr_t err) + * + * @brief Option resolution error string. + * + * @param err The error. + * + * @return null if it fails, else a char*. + */ const char *option_resolution_error_string(optreserr_t err) { |