diff --git a/HISTORY b/HISTORY index 2ecabe8..e8b161f 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,7 @@ -Version 1.77 2025-02-03 +Version 1.77 2025-03-18 * impl. shorten_path for /./ and /../ + * add function fc_compare_int64_ptr Version 1.76 2025-01-27 * get_mounted_filesystems act as program df diff --git a/src/shared_func.c b/src/shared_func.c index 6d63fc3..557094b 100644 --- a/src/shared_func.c +++ b/src/shared_func.c @@ -4362,3 +4362,8 @@ int fc_itoa(int64_t n, char *buff) } return (start - buff) + len; } + +int fc_compare_int64_ptr(const int64_t *n1, const int64_t *n2) +{ + return fc_compare_int64(*n1, *n2); +} diff --git a/src/shared_func.h b/src/shared_func.h index 73f51ef..27f0fa5 100644 --- a/src/shared_func.h +++ b/src/shared_func.h @@ -777,6 +777,8 @@ int set_run_by(const char *group_name, const char *username); */ int cmp_by_ip_addr_t(const void *p1, const void *p2); +int fc_compare_int64_ptr(const int64_t *n1, const int64_t *n2); + /** parse bytes * parameters: * pStr: the string to parse