blob: 53193d773896422f87ca619026fd7dcb665a40a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef DEF_READLINE_H
#define DEF_READLINE_H
#include <stdio.h>
char* freadln(FILE f); // minimal line-reading function. user must free the returned value.
typedef struct _rdln_hist {
int max;
int n;
char **str;
} readline_history;
char* readline(FILE f, readline_history *h);
#endif
|