00001
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef __history_h
00043 #define __history_h 1
00044
00045 #define max_strings 50
00046
00047 typedef struct {
00048 int first;
00049 int last;
00050 int wrap;
00051 char strings[max_strings][200];
00052
00053
00054 int updated;
00055 } hist_rec;
00056
00057 hist_rec *history_init ( int *err );
00058 void history_done ( hist_rec *hist );
00059
00060 void history_clean ( hist_rec *hist );
00061 char *history_getstr ( hist_rec *hist, int *err );
00062 int history_putstr ( hist_rec *hist, char *str );
00063
00064 char *history_geterror( void );
00065
00066 void history_show( hist_rec *hist );
00067
00068 #endif