fts::ffi::fts_close
[−]
[src]
pub unsafe extern fn fts_close(ftsp: *mut FTS) -> c_int
fts_close() in fts.h
C function
int fts_close(FTS *ftsp);
Safety
ftsp
must be a valid pointer of struct FTS.
Examples
let path = std::ffi::CString::new( "." ).unwrap().as_ptr(); let paths = vec![path, std::ptr::null()]; let fts = unsafe { fts::ffi::fts_open( paths.as_ptr(), fts::ffi::FTS_LOGICAL, None ) }; let _ = unsafe { fts::ffi::fts_close( fts ) };