Allocate a new shareable string object
#include <strm.h> char *strm_string_alloc( size_t len, strm_string_t **handle );
libstrm
The function strm_string_alloc() allocates a new shareable string object to be filled in by the caller. The caller must put a null-terminated string in the buffer of the new string object before calling any of the functions strm_string_clone(), strm_string_modify(), or strm_string_destroy(), and must not modify the buffer afterwards.
A pointer to the first byte of the new string object's string buffer, or a null pointer on error. The new string handle is stored in the variable pointed to by the function argument handle.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |