4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
9 static char rcsid[] = "$Id$";
13 * Revision 1.3 2008/02/13 16:57:29 james
14 * *** empty log message ***
16 * Revision 1.2 2008/02/12 22:36:46 james
17 * *** empty log message ***
19 * Revision 1.1 2008/02/08 15:06:42 james
20 * *** empty log message ***
31 ret = (History *) malloc (sizeof (History));
32 ret->lines = malloc (n * sizeof (History_ent));
33 memset (ret->lines, 0, n * sizeof (History_ent));
42 history_free (History * h)
53 history_add (History * h, CRT_CA * c)
59 e = &h->lines[h->wptr];
60 HISTORY_INC (h, h->wptr);
62 memcpy (e->line, c, sizeof (CRT_CA) * CRT_COLS);
71 fputc (c->chr, stderr);