summaryrefslogtreecommitdiff
path: root/line_reader.h
blob: 898801fab7088a4634a678ce9324a7df030876a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include "global.h"


struct line_reader;

struct line_reader* line_reader_init(int fd);
void line_reader_supply_data(struct line_reader *r,const char *data,i64 len);
char* line_reader_get_line(struct line_reader *r,bool include_lf);  // call until NULL
void line_reader_destroy(struct line_reader *r);