Function qnn_wrapper_api::strnDup¶
Defined in File QnnModelPal.hpp
Function Documentation¶
-
char *qnn_wrapper_api::strnDup(const char *source, size_t maxlen)¶
Returns a pointer to a null-terminated byte string, which contains copies of at most maxlen bytes from the string pointed to by str. If the null terminator is not encountered in the first maxlen bytes, it is added to the duplicated string. @source Null-terminated source string. @maxlen Max number of bytes to copy from str.
- Returns
A pointer to the newly allocated string, or a null pointer if an error occurred.