90 dstlim =
dst + linebufsize - 1;
99 if ((requireEOLN == 0) && (
dst >= dstlim))
124 }
else if (*
src ==
'\r') {
129 if ((src < srl->bufLim) && (*
src !=
'\n'))
148 if ((requireEOLN != 0) && (
dst != linebuf) && (
dst[-1] !=
'\n'))
150 if ((requireEOLN != 0) && (
dst == linebuf) && (illegals > 0))
void DisposeSReadlineInfo(SReadlineInfo *srl)
int SReadline(SReadlineInfo *srl, char *const linebuf, size_t linebufsize)
void FlushSReadlineInfo(SReadlineInfo *srl)
int InitSReadlineInfo(SReadlineInfo *srl, int fd, char *buf, size_t bsize, int tlen, int requireEOLN)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLenum GLuint GLenum GLsizei const GLchar * buf
int SRead(int, char *const, size_t, int, int)