ddnet/src/engine/e_linereader.h

15 lines
329 B
C
Raw Normal View History

2008-02-10 21:54:52 +00:00
#include "e_system.h"
/* buffered stream for reading lines, should perhaps be something smaller */
typedef struct
{
char buffer[4*1024];
unsigned buffer_pos;
unsigned buffer_size;
unsigned buffer_max_size;
IOHANDLE io;
} LINEREADER;
void linereader_init(LINEREADER *lr, IOHANDLE io);
char *linereader_get(LINEREADER *lr);