{"id":13800722,"url":"https://github.com/ros2/rcutils","last_synced_at":"2025-08-21T17:31:36.605Z","repository":{"id":18942500,"uuid":"81483797","full_name":"ros2/rcutils","owner":"ros2","description":"Common C functions and data structures used in ROS 2","archived":false,"fork":false,"pushed_at":"2024-04-22T10:45:56.000Z","size":1087,"stargazers_count":54,"open_issues_count":20,"forks_count":97,"subscribers_count":27,"default_branch":"rolling","last_synced_at":"2024-04-22T11:50:15.922Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ros2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-02-09T18:56:35.000Z","updated_at":"2024-04-23T12:48:10.488Z","dependencies_parsed_at":"2024-03-28T11:44:05.305Z","dependency_job_id":"4e657f9a-a2f9-43fa-bb03-13aa6acd4611","html_url":"https://github.com/ros2/rcutils","commit_stats":null,"previous_names":[],"tags_count":70,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ros2%2Frcutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ros2%2Frcutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ros2%2Frcutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ros2%2Frcutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ros2","download_url":"https://codeload.github.com/ros2/rcutils/tar.gz/refs/heads/rolling","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230523761,"owners_count":18239445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2024-08-04T00:01:15.572Z","updated_at":"2025-08-21T17:31:36.590Z","avatar_url":"https://github.com/ros2.png","language":"C","funding_links":[],"categories":["Packages"],"sub_categories":["RMW (ROS middleware)"],"readme":"# rcutils: ROS 2 C Utilities data structures\n\n`rcutils` is a C API consisting of macros, functions, and data structures used through out the ROS 2 code base.\n\n## Quality Declaration\n\nThis package claims to be in the **Quality Level 1** category, see the [Quality Declaration](./QUALITY_DECLARATION.md) for more details.\n\n## API\n\nThe API is a combination of parts:\n\n- Allocator concept, used to inject the allocating and deallocating methods into a function or type.\n  - rcutils_allocator_t\n  - rcutils/allocator.h\n- Command line interface utilities:\n  - rcutils/cmdline_parser.h\n- Utilities for setting error states (error message, file, and line number) like `strerror` for `errno`:\n  - rcutils/error_handling.h\n- Some basic filesystem utilities like checking for path existence, getting the cwd, etc...:\n  - rcutils/filesystem.h\n- A C string find method:\n  - rcutils_find()\n  - rcutils_find_last()\n  - rcutils/find.h\n- A convenient string formatting function, which takes a custom allocator:\n  - rcutils_format_string()\n  - rcutils/format_string.h\n- Functions for interfacing with process environment variables:\n  - rcutils_get_env()\n  - rcutils_get_home_dir()\n  - rcutils_set_env()\n  - rcutils/env.h\n- Extensible logging macros:\n  - Some examples (not exhaustive):\n    - RCUTILS_LOG_DEBUG()\n    - RCUTILS_LOG_INFO_NAMED()\n    - RCUTILS_LOG_WARN_ONCE()\n    - RCUTILS_LOG_ERROR_SKIPFIRST_NAMED()\n  - rcutils/logging_macros.h\n  - rcutils/logging.h\n- Some basic utilities to load, unload and get symbols from shared libraries at run-time.\n  - rcutils/shared_library.h\n- A string replacement function which takes an allocator, based on http://creativeandcritical.net/str-replace-c:\n  - rcutils_repl_str()\n  - rcutils/repl_str.h\n- String splitting functions which take a custom allocator:\n  - rcutils_split()\n  - rcutils_split_last()\n  - rcutils/split.h\n- A version of `strdup` which takes an allocator:\n  - rcutils_strdup()\n  - rcutils/strdup.h\n- Portable implementations of \"get system time\" and \"get steady time\":\n  - rcutils_system_time_now()\n  - rcutils_steady_time_now()\n  - rcutils_raw_steady_time_now()\n  - rcutils/time.h\n- Some useful data structures:\n  - A \"string array\" data structure (analogous to `std::vector\u003cstd::string\u003e`):\n    - rcutils_string_array_t\n    - rcutils/types/string_array.h\n  - A \"string-string map\" data structure (analogous to `std::map\u003cstd::string, std::string\u003e`)\n    - rcutils_string_map_t\n    - rcutils/types/string_map.h\n- Macros for controlling symbol visibility and linkage for this library:\n  - rcutils/visibility_control.h\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fros2%2Frcutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fros2%2Frcutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fros2%2Frcutils/lists"}