Return to ifile.c CVS log | Up to [local] / src / usr.bin / less |
version 1.9, 2015/11/06 15:50:33 | version 1.10, 2015/11/07 18:07:44 | ||
---|---|---|---|
|
|
||
* Allocate and initialize structure. | * Allocate and initialize structure. | ||
*/ | */ | ||
p = ecalloc(1, sizeof (struct ifile)); | p = ecalloc(1, sizeof (struct ifile)); | ||
p->h_filename = save(filename); | p->h_filename = estrdup(filename); | ||
p->h_scrpos.pos = -1; | p->h_scrpos.pos = -1; | ||
p->h_opened = 0; | p->h_opened = 0; | ||
p->h_hold = 0; | p->h_hold = 0; |