summaryrefslogtreecommitdiff
path: root/misc.h
AgeCommit message (Collapse)Author
2022-08-04misc: Add `remove_trailing_whitespace()`mrb0nk500
This function removes any whitespace found at the end of the supplied string. This can be useful when you have a string with whitespace throughout it, but only want the whitespace at the end removed.
2022-08-03misc: Add `vformat_len_copy()`mrb0nk500
This works the same as `vformat_len()`, except that it copies `args` into a temporary `va_list`. This can be useful when you're already using a `va_list`, and thus need to copy the list already.
2022-08-03misc: Add `vformat_len()`mrb0nk500
This works exactly like `format_len()`, except that it uses `va_list` rather than variadic arguments.
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`.