summaryrefslogblamecommitdiff
path: root/src/user/lib/libc/include/readline.h
blob: 9fa2ee7aab1c7b4a7e369986c88ad09192be2208 (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 *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