summaryrefslogtreecommitdiff
path: root/misc.h
AgeCommit message (Collapse)Author
2022-07-31misc: Add `is_dir()`, and `mkdirp()`mrb0nk500
`is_dir()` checks if the supplied path is a directory, and returns 1 if it's a directory, 0 if it isn't a directory, and -1 if it doesn't exist. `mkdirp()` works like `mkdir()` except that it also creates parent directories if needed.
2022-07-27misc: Add `find_delm()`, and `get_str_delm_range()`mrb0nk500
`find_delm()` finds the first matched delimiter of the supplied delimiter(s), and either returns the pointer to the first non-delimiter character after the match, or the match itself if `skip_delm` is true, or false respectivly. `get_str_delm_range()` finds, and returns the string in between the supplied starting, and ending delimiter(s). It also returns the pointer to the first non-delimiter character after the end of the range in `rhs`.
2022-07-27misc: Add `is_empty()`, and `skip_whitespace()`mrb0nk500
2021-08-01Added extern for `sanitized_dir_path_name()`.mrb0nk500
2021-07-03Added `find_alpha()`, and `create_num_str()`.mrb0nk500
2021-06-26Added `format_len()`.mrb0nk500
2021-06-23Fixed a typo in `misc.h`.mrb0nk500
Forgot to add a semicolon to one of the externs.
2021-06-23Added externs for all the new functions in `misc.c`.mrb0nk500
2021-06-18Move all miscellaneous functions from `config.c` intomrb0nk500
`misc.c`.