1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef MSGPACK_FBUFFER_H
- #define MSGPACK_FBUFFER_H
- #include <stdio.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- static inline int msgpack_fbuffer_write(void* data, const char* buf, size_t len)
- {
- return (len == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
- }
- #ifdef __cplusplus
- }
- #endif
- #endif
|