4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
9 static char rcsid[] = "$Id$";
13 * Revision 1.2 2008/02/12 22:36:46 james
14 * *** empty log message ***
16 * Revision 1.1 2008/02/08 15:06:42 james
17 * *** empty log message ***
28 ret = (History *) malloc (sizeof (History));
29 ret->lines = malloc (n * sizeof (History_ent));
30 memset (ret->lines, 0, n * sizeof (History_ent));
39 history_free (History * h)
50 history_add (History * h, CRT_CA * c)
55 memcpy (h->lines[h->wptr].line, c, sizeof (CRT_CA) * CRT_COLS);
58 if (h->wptr == h->nlines)