2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
20 map_init(Map *m, int n)
22 m->size = (n + 7) >> 3;
23 m->map = xcalloc(m->size, 1);
26 // free space allocated
30 m->map = xfree(m->map);
36 map_clone(Map *t, Map *s)
39 t->map = xmalloc(s->size);
40 memcpy(t->map, s->map, t->size);