libjapi  0.3.2
Universal JSON API Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
creadline.h
Go to the documentation of this file.
1 
35 #ifndef __CREADLINE_H__
36 #define __CREADLINE_H__
37 
39 //#define CREADLINE_MAX_LINE_SIZE 10*1024*1024
40 
46 #define CREADLINE_BLOCK_SIZE 1024
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
55 typedef struct __creadline_buffer {
57  int nbytes;
59 
87 int creadline_r(int fd, void **dst, creadline_buf_t *buffer);
88 
104 int creadline(int fd, void **dst);
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif /* __CREADLINE_H__ */
Buffer type for storing remaining bytes.
Definition: creadline.h:55
int creadline(int fd, void **dst)
Read a single line from a file descriptor.
Definition: creadline.c:194
int creadline_r(int fd, void **dst, creadline_buf_t *buffer)
Read a single line from a file descriptor (reentrant version).
Definition: creadline.c:70
#define CREADLINE_BLOCK_SIZE
Definition: creadline.h:46
int nbytes
Definition: creadline.h:57