version 1.16, 2012/12/05 23:20:26 |
version 1.17, 2015/08/20 22:32:41 |
|
|
|
|
for (l = lstp; *l != NULL; l = (list **) & (*l)->next) |
for (l = lstp; *l != NULL; l = (list **) & (*l)->next) |
; |
; |
lst = ALLOC(list); |
lst = malloc(sizeof(list)); |
if (lst == NULL) { |
if (lst == NULL) { |
fprintf(stderr, "failed in alloc\n"); |
fprintf(stderr, "failed in alloc\n"); |
exit(1); |
exit(1); |
|
|
char *name; |
char *name; |
int len = strlen(pname) + strlen(vname) + strlen(ARGEXT) + 3; |
int len = strlen(pname) + strlen(vname) + strlen(ARGEXT) + 3; |
|
|
name = (char *)malloc(len); |
name = malloc(len); |
if (!name) { |
if (!name) { |
fprintf(stderr, "failed in malloc\n"); |
fprintf(stderr, "failed in malloc\n"); |
exit(1); |
exit(1); |
|
|
{ |
{ |
bas_type *ptr; |
bas_type *ptr; |
|
|
if ((ptr = (bas_type *)malloc(sizeof(bas_type))) == (bas_type *)NULL) { |
if ((ptr = malloc(sizeof(bas_type))) == (bas_type *)NULL) { |
fprintf(stderr, "failed in malloc\n"); |
fprintf(stderr, "failed in malloc\n"); |
exit(1); |
exit(1); |
} |
} |