added hcl_get_base_name_from_path()

merged hclx server and client into a single command
This commit is contained in:
2024-04-27 21:16:00 +09:00
parent e14b8e1e04
commit 8dc884aa7e
12 changed files with 328 additions and 170 deletions

View File

@ -943,6 +943,24 @@ HCL_EXPORT void hcl_sub_ntime (
const hcl_ntime_t* y
);
/* =========================================================================
* PATH NAME
* ========================================================================= */
const hcl_bch_t* hcl_get_base_name_from_bcstr_path (
const hcl_bch_t* path
);
const hcl_uch_t* hcl_get_base_name_from_ucstr_path (
const hcl_uch_t* path
);
#if defined(HCL_OOCH_IS_UCH)
#define hcl_get_base_name_from_path(x) hcl_get_base_name_from_ucstr_path(x)
#else
#define hcl_get_base_name_from_path(x) hcl_get_base_name_from_bcstr_path(x)
#endif
/* =========================================================================
* BIT SWAP
* ========================================================================= */