Function rmw_validate_namespace_with_size
Defined in File validate_namespace.h
Function Documentation
-
rmw_ret_t rmw_validate_namespace_with_size(const char *namespace_, size_t namespace_length, int *validation_result, size_t *invalid_index)
Determine if a given namespace is valid.
This is an overload with an extra parameter for the length of namespace_. If a non RMW_RET_OK return value is returned, the RMW error message will be set.
- Parameters:
namespace_ – [in] namespace to be validated
namespace_length – [in] The number of characters in namespace_.
validation_result – [out] int in which the result of the check is stored
invalid_index – [out] index of the input string where an error occurred
- Returns:
RMW_RET_OK
on successfully running the check, or- Returns:
RMW_RET_INVALID_ARGUMENT
on invalid parameters, or- Returns:
RMW_RET_ERROR
when an unspecified error occurs.