ucx/utils.h

changeset 218
b20d6088795c
parent 192
1e51558b9d09
child 222
e0f850709a5c
equal deleted inserted replaced
217:e056e4e0b08e 218:b20d6088795c
43 #endif 43 #endif
44 44
45 #include "ucx.h" 45 #include "ucx.h"
46 #include "string.h" 46 #include "string.h"
47 #include "allocator.h" 47 #include "allocator.h"
48 #include <stdint.h> 48 #include <inttypes.h>
49 #include <string.h> 49 #include <string.h>
50 #include <stdarg.h> 50 #include <stdarg.h>
51 51
52 /** 52 /**
53 * Copies a string. 53 * Copies a string.
93 * @param rfnc the read function 93 * @param rfnc the read function
94 * @param wfnc the write function 94 * @param wfnc the write function
95 * @return total number of bytes copied 95 * @return total number of bytes copied
96 */ 96 */
97 #define ucx_stream_hcopy(src,dest,rfnc,wfnc) ucx_stream_copy(\ 97 #define ucx_stream_hcopy(src,dest,rfnc,wfnc) ucx_stream_copy(\
98 src, dest, (read_func)rfnc, (write_func)wfnc, NULL, 0x100, SIZE_MAX) 98 src, dest, (read_func)rfnc, (write_func)wfnc, NULL, 0x100, (size_t)-1)
99 99
100 /** 100 /**
101 * Shorthand for ucx_stream_copy using the default copy buffer and a copy limit. 101 * Shorthand for ucx_stream_copy using the default copy buffer and a copy limit.
102 * 102 *
103 * @param src the source stream 103 * @param src the source stream

mercurial