physfs.c
changeset 28 529214f57d1b
parent 27 e1d3292769b2
child 39 bc29e1ee7ef6
equal deleted inserted replaced
27:e1d3292769b2 28:529214f57d1b
  1225     BAIL_IF_MACRO(h->funcs->seek == NULL, ERR_NOT_SUPPORTED, 0);
  1225     BAIL_IF_MACRO(h->funcs->seek == NULL, ERR_NOT_SUPPORTED, 0);
  1226     return(h->funcs->seek(h, pos));
  1226     return(h->funcs->seek(h, pos));
  1227 } /* PHYSFS_seek */
  1227 } /* PHYSFS_seek */
  1228 
  1228 
  1229 
  1229 
       
  1230 int PHYSFS_fileLength(PHYSFS_file *handle)
       
  1231 {
       
  1232     FileHandle *h = (FileHandle *) handle->opaque;
       
  1233     assert(h != NULL);
       
  1234     assert(h->funcs != NULL);
       
  1235     BAIL_IF_MACRO(h->funcs->fileLength == NULL, ERR_NOT_SUPPORTED, 0);
       
  1236     return(h->funcs->fileLength(h));
       
  1237 } /* PHYSFS_filelength */
       
  1238 
       
  1239 
  1230 /* end of physfs.c ... */
  1240 /* end of physfs.c ... */
  1231 
  1241