rmw  master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
Functions
sanity_checks.h File Reference
#include "rcutils/types.h"
#include "rmw/macros.h"
#include "rmw/types.h"
#include "rmw/visibility_control.h"
Include dependency graph for sanity_checks.h:

Go to the source code of this file.

Functions

rmw_ret_t rmw_check_zero_rmw_string_array (rcutils_string_array_t *array)
 Check that a string_array struct is zero initialized. More...
 

Function Documentation

◆ rmw_check_zero_rmw_string_array()

rmw_ret_t rmw_check_zero_rmw_string_array ( rcutils_string_array_t array)

Check that a string_array struct is zero initialized.

This sets error message and returns error code if array is not zero initialized

Parameters
[in]arrayThe string array to check
Returns
RMW_RET_OK if array is zero initialized, otherwise RMW_RET_ERROR