Module libmacchina::extra[][src]

This module provides additional functionalities

Functions

count_lines

Returns the number of newlines in a buffer

is_int

This function checks if the given String is a valid integer, returning an error message if the check fails.

list_dir_entries

Returns the entries of a given Path.

path_extension

Returns

pop_newline

This function pops \n from the end of a given String if it is found.

ucfirst

Uppercase the first letter of a String or &str.

which

Search all directories in PATH for a program e.g. ps, grep, etc.