return NULL;
}
-struct lbx_state *lbx_open(const char *path)
-{
- struct lbx_state *new = NULL;
- FILE *f;
-
- if ((f = fopen(path, "rb"))) {
- const char *name = strrchr(path, '/');
- new = lbx_fopen(f, name ? name+1 : path);
- } else {
- lbx_errno = -errno;
- }
-
- return new;
-}
-
size_t lbx_numfiles(struct lbx_state *lbx)
{
return lbx->nfiles;
/* Archive operations */
LBX *lbx_fopen(FILE *, const char *);
LBX *lbx_mopen(void *, size_t, const char *);
-LBX *lbx_open(const char *);
void lbx_close(LBX *);
size_t lbx_numfiles(LBX *);