blob: 910ad9a65fdf02e9b1d1c2e020b2fac2a3d49929 (
plain) (
tree)
|
|
#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* freadln(FILE f); // minimal line-reading function. user must free the returned value.
char* freadline(FILE f, readline_history *h);
#ifdef __cplusplus
} }
#endif
#endif
|