15 #ifndef RCUTILS__STRDUP_H_ 16 #define RCUTILS__STRDUP_H_ 74 #endif // RCUTILS__STRDUP_H_
Encapsulation of an allocator.
Definition: allocator.h:43
char * rcutils_strdup(const char *str, rcutils_allocator_t allocator)
Return a duplicated string with an allocator, or null if an error occurs.
#define RCUTILS_WARN_UNUSED
Definition: macros.h:24
#define RCUTILS_PUBLIC
Definition: visibility_control.h:48
char * rcutils_strndup(const char *str, size_t string_length, rcutils_allocator_t allocator)
Return a duplicated string with an allocator, or null if an error occurs.