[−][src]Function rvs::rvs_context_new
#[no_mangle]pub extern "C" fn rvs_context_new(
search_path: *const c_char,
seed: u32,
error: *mut Error
) -> *mut Context
Allocates and returns a new Context
The pointer returned is owned by the caller and is freed by a call to rvs_transform
or
rvs_context_free
.
Arguments
search_path
- A colon separated list of paths to search forimport
s.seed
- The initial seed for all variable PRNGs.
Errors
An error will be reported if any of the parsed paths do not exist. If the search path string contains a mix of paths that do and do not exist, none of the paths will be added to the interal search path.
A valid Context pointer will be returned and will need to be freed by the caller regardless of error or no error.