diff options
author | cathook <cat.hook31894@gmail.com> | 2013-12-17 03:18:06 +0800 |
---|---|---|
committer | cathook <cat.hook31894@gmail.com> | 2013-12-17 03:18:06 +0800 |
commit | 0375e8a12612729627c24048b952294b15f21d22 (patch) | |
tree | 9bd39f92ce1f8c6388182ce4b80f427d5e9daae6 | |
parent | 92fc771515af38e384396692058fd147b79b2ba7 (diff) | |
download | ctl-0375e8a12612729627c24048b952294b15f21d22.tar.gz ctl-0375e8a12612729627c24048b952294b15f21d22.tar.zst ctl-0375e8a12612729627c24048b952294b15f21d22.zip |
add a type for compare function
-rw-r--r-- | inc/utility.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/utility.h b/inc/utility.h index c8844e8..edc8f3b 100644 --- a/inc/utility.h +++ b/inc/utility.h @@ -103,6 +103,10 @@ typedef pcuchar* ppcuchar; #define pcuChar(X) (( pcuchar)(X)) #define ppcuChar(X) ((ppcuchar)(X)) +// +typedef int (*cmp_func)(pcvoid,pcvoid); + + pvoid ctl_malloc (size_t size); pvoid ctl_realloc(pvoid ptr, size_t size); pvoid ctl_free (pvoid ptr); |