Return to names.c CVS log | Up to [local] / src / usr.bin / mail |
version 1.7, 1997/07/24 17:27:12 | version 1.8, 1997/07/31 02:48:14 | ||
---|---|---|---|
|
|
||
{ | { | ||
register char *cp; | register char *cp; | ||
register struct name *top, *np, *t; | register struct name *top, *np, *t; | ||
char nbuf[BUFSIZ]; | char *nbuf; | ||
if (line == NULL || *line == '\0') | if (line == NULL || *line == '\0') | ||
return(NIL); | return(NIL); | ||
if ((nbuf = (char *)malloc(strlen(line) + 1)) == NULL) | |||
panic("Out of memory"); | |||
top = NIL; | top = NIL; | ||
np = NIL; | np = NIL; | ||
cp = line; | cp = line; | ||
|
|
||
t->n_blink = np; | t->n_blink = np; | ||
np = t; | np = t; | ||
} | } | ||
(void)free(nbuf); | |||
return(top); | return(top); | ||
} | } | ||