version 1.3, 1996/10/24 03:46:05 |
version 1.4, 1997/06/30 23:54:08 |
|
|
register char ch, *p; |
register char ch, *p; |
|
|
plen = strlen(path); |
plen = strlen(path); |
for (p = *store; ch = *orig; ++orig) |
for (p = *store; (ch = *orig); ++orig) |
if (ch == '{' && orig[1] == '}') { |
if (ch == '{' && orig[1] == '}') { |
while ((p - *store) + plen > len) |
while ((p - *store) + plen > len) |
if (!(*store = realloc(*store, len *= 2))) |
if (!(*store = realloc(*store, len *= 2))) |
|
|
{ |
{ |
void *p; |
void *p; |
|
|
if (p = malloc(len)) |
if ((p = malloc(len))) |
return (p); |
return (p); |
err(1, NULL); |
err(1, NULL); |
} |
} |