fts::ffi::fts_children
[−]
[src]
pub unsafe extern fn fts_children(ftsp: *mut FTS, options: c_int) -> *const FTSENT
fts_children() in fts.h
C function
FTSENT *fts_children(FTS *ftsp, int options);
Safety
ftsp
must be a valid pointer of struct FTS.
options
must be either 0 or FTS_NAMEONLY
.
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_children( fts, 0 ) };