version 1.10, 2001/11/21 15:26:39 |
version 1.11, 2001/11/21 20:41:55 |
|
|
continue; |
continue; |
h = hash(field); |
h = hash(field); |
igp = (struct ignore *)calloc(1, sizeof(struct ignore)); |
igp = (struct ignore *)calloc(1, sizeof(struct ignore)); |
igp->i_field = (char *)calloc(strlen(field) + 1, sizeof(char)); |
if (igp == NULL) |
strcpy(igp->i_field, field); |
errx(1, "Out of memory"); |
|
igp->i_field = strdup(field); |
|
if (igp->i_field == NULL) |
|
errx(1, "Out of memory"); |
igp->i_link = tab->i_head[h]; |
igp->i_link = tab->i_head[h]; |
tab->i_head[h] = igp; |
tab->i_head[h] = igp; |
tab->i_count++; |
tab->i_count++; |