#[no_mangle]
pub unsafe extern "C" fn nstd_shared_lib_load(
    path: &NSTDStr
) -> NSTDOptionalSharedLib
Available on crate feature nstd_shared_lib only.
Expand description

Dynamically loads a shared library at runtime.

Parameters:

  • const NSTDStr *path - A path to the shared library.

Returns

NSTDOptionalSharedLib lib - A handle to the dynamically loaded library, or none on error.

Panics

Panics if path’s length in bytes exceeds NSTDInt’s max value or allocating fails.

Safety