Main Page | Class List | Directories | File List | Class Members | File Members

history.h

Go to the documentation of this file.
00001 
00013  /*
00014  * Copyright (C) 2001-2003 Oliver Cordes (ocordes@astro.uni-bonn.de)
00015  *
00016  *      This program is free software; you can redistribute it and/or
00017  *      modify it under the terms of the GNU General Public License as
00018  *      published by the Free Software Foundation, version 2.
00019  *
00020  */
00021 
00022 
00023 
00024 /* $Id: history.h,v 1.1.1.1 2005/11/18 17:30:35 greensheep Exp $
00025 
00026    $Log: history.h,v $
00027    Revision 1.1.1.1  2005/11/18 17:30:35  greensheep
00028    Initial commit
00029 
00030    Revision 1.1  2004/10/19 10:14:56  ocordes
00031    - starting with gboocia
00032 
00033  * Revision 1.2  2001/02/27  03:25:39  ccd
00034  * fix bug in array dimensions
00035  *
00036    Revision 1.1  2001/02/21 14:54:06  ccd
00037    startup
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];    /* first the size of the array, 
00052                                         the next entry is the size 
00053                                         of the string *grrr* */
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

Generated on Fri Dec 16 22:23:35 2005 for gboccia by  doxygen 1.4.2