1.1 --- a/src/cx/common.h Sun May 01 13:14:31 2022 +0200 1.2 +++ b/src/cx/common.h Sun May 01 16:12:13 2022 +0200 1.3 @@ -93,6 +93,16 @@ 1.4 #include <stddef.h> 1.5 #include <stdbool.h> 1.6 1.7 +/** 1.8 + * Function pointer compatible with fwrite-like functions. 1.9 + */ 1.10 +typedef size_t (*cx_write_func)( 1.11 + void const *, 1.12 + size_t, 1.13 + size_t, 1.14 + void * 1.15 +); 1.16 + 1.17 #ifdef _WIN32 1.18 #if !(defined __ssize_t_defined || defined _SSIZE_T_) 1.19 #include <BaseTsd.h>