upkie  11.0.0
Open-source wheeled biped robots

◆ clear_shared_memory()

int upkie::cpp::utils::clear_shared_memory ( const std::string &  name)

Clear an existing shared-memory file.

Parameters
[in]nameName of the shared-memory file to remove if it exists.
Returns
EXIT_SUCCESS if the file is cleared, EXIT_FAILURE otherwise.