Module libmacchina::extra[][src]

This module provides additional functionalities

Functions

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.

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.