New ef_blank()

It performs the same initialization as ef_extend().
This commit is contained in:
Markus Armbruster 2008-02-24 18:28:09 +01:00
parent a71f01585f
commit c21c4ff9a7
2 changed files with 13 additions and 0 deletions

View file

@ -468,6 +468,18 @@ ef_extend(int type, int count)
return 1;
}
/*
* Initialize element ID for EP in BUF.
* FIXME pass buffer size!
*/
void
ef_blank(int type, int id, void *buf)
{
if (ef_check(type) < 0)
return;
do_blank(&empfile[type], buf, id, 1);
}
/*
* Initialize COUNT elements of EP in BUF, starting with element ID.
*/