#line #file-line #head #tail #course #function #ju

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

#5 in #course

Download history 295/week @ 2024-03-12 34/week @ 2024-03-19 10/week @ 2024-03-26 48/week @ 2024-04-02

387 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