blob: 1ec5baa4cfe3341109ef9559bdc8c29c29a3a8e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef DEF_READLINE_H
#define DEF_READLINE_H
#include <stdio.h>
typedef struct _rdln_hist {
int max;
int n;
char **str;
} readline_history;
#ifdef __cplusplus
extern "C" { namespace libc {
#endif
char *readln();
char* freadln(FILE f); // minimal line-reading function. user must free the returned value.
char* freadline(FILE f, readline_history *h);
#ifdef __cplusplus
} }
#endif
#endif
|