]> Kevux Git Server - fll/commit
Update: ensure string parameter tests exist and add f_file_name_base() and f_file_nam...
authorKevin Day <thekevinday@gmail.com>
Sun, 31 May 2020 04:37:30 +0000 (23:37 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 31 May 2020 04:37:30 +0000 (23:37 -0500)
commitfb84a509d3711e625c9e595150dbc013f8f8e7fd
tree218e424b44a87e6d4d2f1c49dc98b9bb2ec95c10
parent35b86b935587fa0c6a0582322272f092d73d1a6a
Update: ensure string parameter tests exist and add f_file_name_base() and f_file_name_directory() functions

I seem to have forgotten that f_string is a char * and should be checked to not be NULL.
I think I removed these during a cleanup process, so add them back.

The basename() and dirname() functions need to be suppoted.
They require extra effort because as per the POSIX standard, parameters are modified.
This is undesirable so protect the parameters when calling.
level_0/f_file/c/file.c
level_0/f_file/c/file.h