#file-line #head #tail #file-path #posix #course #function

ju-tcs-tbop-24-lib-dcfk

Test library for tbop course at JU

3 releases (stable)

1.0.1 Mar 14, 2024
0.1.0 Mar 14, 2024

#545 in Unix APIs

34 downloads per month
Used in ju-tcs-tbop-24-dcfk

Custom license

4KB
51 lines

ju-tcs-tbop-24-lib-dcfk

Implementation of POSIX head and tail functions.

Functions

head

// Returns n first lines from given file.
pub fn head(path: &Path, n: usize) -> Vec<String>

tail

// Returns n last lines from given file.
pub fn tail(path: &Path, n: usize) -> Vec<String>

No runtime deps