version 1.10, 2009/10/30 18:43:24 |
version 1.11, 2009/10/31 06:10:57 |
Line 91 chars_init(enum chars type) |
|
Line 91 chars_init(enum chars type) |
|
|
|
tab = malloc(sizeof(struct tbl)); |
tab = malloc(sizeof(struct tbl)); |
if (NULL == tab) { |
if (NULL == tab) { |
fprintf(stderr, "memory exhausted\n"); |
perror(NULL); |
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
} |
} |
|
|
htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); |
htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); |
if (NULL == htab) { |
if (NULL == htab) { |
fprintf(stderr, "memory exhausted\n"); |
perror(NULL); |
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
} |
} |
|
|