Skip to main content

pamoja_ros2_name_is_valid

Function pamoja_ros2_name_is_valid 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ros2_name_is_valid( name: *const c_char, ) -> bool
Expand description

Reports whether a string is a valid ROS 2 topic or service name.

§Arguments

  • name - the candidate name, as null-terminated UTF-8.

§Returns

true when the name obeys the ROS 2 rules, or false if it does not or name is null.

§Safety

name must be a valid null-terminated UTF-8 string for the duration of the call, or null.