MCPcopy Create free account
hub / github.com/DentonW/DevIL / unzGoToFirstFile

Function unzGoToFirstFile

DevIL/test/Unzip/unzip.c:696–711  ·  view source on GitHub ↗

Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem */

(file)

Source from the content-addressed store, hash-verified

694 return UNZ_OK if there is no problem
695*/
696extern int ZEXPORT unzGoToFirstFile (file)
697 unzFile file;
698{
699 int err=UNZ_OK;
700 unz_s* s;
701 if (file==NULL)
702 return UNZ_PARAMERROR;
703 s=(unz_s*)file;
704 s->pos_in_central_dir=s->offset_central_dir;
705 s->num_file=0;
706 err=unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,
707 &s->cur_file_info_internal,
708 NULL,0,NULL,0,NULL,0);
709 s->current_file_ok = (err == UNZ_OK);
710 return err;
711}
712
713
714/*

Callers 2

unzOpenFunction · 0.85
unzLocateFileFunction · 0.85

Tested by

no test coverage detected