summaryrefslogblamecommitdiff
path: root/src/user/lib/libc/include/readline.h
blob: 910ad9a65fdf02e9b1d1c2e020b2fac2a3d49929 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11




                      





                           








                                                                                                    


      
#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