physfs.c
changeset 28 529214f57d1b
parent 27 e1d3292769b2
child 39 bc29e1ee7ef6
--- a/physfs.c	Mon Jul 09 01:45:13 2001 +0000
+++ b/physfs.c	Mon Jul 09 04:15:35 2001 +0000
@@ -1227,5 +1227,15 @@
 } /* PHYSFS_seek */
 
 
+int PHYSFS_fileLength(PHYSFS_file *handle)
+{
+    FileHandle *h = (FileHandle *) handle->opaque;
+    assert(h != NULL);
+    assert(h->funcs != NULL);
+    BAIL_IF_MACRO(h->funcs->fileLength == NULL, ERR_NOT_SUPPORTED, 0);
+    return(h->funcs->fileLength(h));
+} /* PHYSFS_filelength */
+
+
 /* end of physfs.c ... */