mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
15 lines
332 B
C
15 lines
332 B
C
#include <base/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);
|