OPENSSL_strndup function
OPENSSL_strndup returns an allocated, duplicate of |str|, which is, at most, |size| bytes. The result is always NUL terminated. The memory allocated must be freed with |OPENSSL_free|.
Implementation
@meta.RecordUse()
@ffi.Native<ffi.Pointer<ffi.Char> Function(ffi.Pointer<ffi.Char>, ffi.Size)>(
symbol: 'bssl_dart_OPENSSL_strndup',
)
external ffi.Pointer<ffi.Char> OPENSSL_strndup(
ffi.Pointer<ffi.Char> str,
int size,
);