fts::ffi::fts_read
[−]
[src]
pub unsafe extern fn fts_read(ftsp: *mut FTS) -> *const FTSENT
fts_read() in fts.h
C function
FTSENT *fts_read(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 _ftsent = unsafe { fts::ffi::fts_read( fts ) };