Age | Commit message (Collapse) | Author |
|
|
|
|
|
It was basically not properly skipping over to the next forward slash.
The solution was to have it get the span of the forward slashes, and
checking if we hit the null terminator after trying to find the next
forward slash. If we do hit the null terminator, we add the forward
slash span to the cursor.
|
|
This also cleans it up a bit.
|
|
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.
|
|
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.
|
|
`format_len()`
|
|
This works exactly like `format_len()`, except that it uses `va_list`
rather than variadic arguments.
|
|
`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.
|
|
`find_delm()`
Also `s` doesn't get incremented when checking if the current character
is a backslash now.
|
|
the end of the range in `get_str_delm_range()`
|
|
`get_str_delm_range()`
|
|
|
|
`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`.
|
|
`skip_whitespace()` can skip past.
|
|
`get_line()`
|
|
|
|
|
|
|
|
This function is the same as `dir_path_name()`, except
`name` is sanitized before being appended to `root`.
|
|
`sanitized_strlen()`.
|
|
This was done to get rid of a const qualifier warning.
|
|
|
|
|
|
|
|
|
|
|
|
`sanitize_str()` creates a string with each starting
space replaced by a hyphen, and with all trailing
spaces, and periods removed.
`sanitize_strlen()` gets the length of the sanatized
version of the supplied string.
|
|
|
|
|
|
`misc.c`.
|