Function cras::outputString(allocator_t, const char *, size_t)
Defined in File c_api.hpp
Function Documentation
-
char *cras::outputString(allocator_t allocator, const char *string, size_t length)
Allocate enough bytes using the given allocator and copy the given string into the buffer (including null termination byte).
- Parameters:
allocator – [in] The allocator to use.
string – [in] The zero-terminated string to copy into the allocated buffer.
length – [in] Length of the string to copy including the null termination character.
- Returns:
Pointer to the allocated buffer.