version 1.9, 2004/09/15 22:12:19 |
version 1.10, 2006/04/03 01:31:11 |
|
|
sizeof(CLASS), sizeof(CLASS), c_class)) == NULL) |
sizeof(CLASS), sizeof(CLASS), c_class)) == NULL) |
errx(1, "unknown class %s", s->str); |
errx(1, "unknown class %s", s->str); |
|
|
if ((cp->set = p = malloc((NCHARS + 1) * sizeof(int))) == NULL) |
if ((cp->set = p = calloc(NCHARS + 1, sizeof(int))) == NULL) |
errx(1, "no memory for a class"); |
errx(1, "no memory for a class"); |
bzero(p, (NCHARS + 1) * sizeof(int)); |
|
for (cnt = 0, func = cp->func; cnt < NCHARS; ++cnt) |
for (cnt = 0, func = cp->func; cnt < NCHARS; ++cnt) |
if ((func)(cnt)) |
if ((func)(cnt)) |
*p++ = cnt; |
*p++ = cnt; |