Duplicate a NUL-terminated string using the OpenSSL allocator.
Declared in <openssl/crypto.h>
char*
CRYPTO_strdup(
char const* str,
char const* file,
int line);
Newly allocated copy, or NULL on failure.
| Name | Description |
|---|---|
| str | String to copy. |
| file | Source file name recorded with the allocation (usually FILE). |
| line | Source line recorded with the allocation (usually LINE). |