wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]

PHYSFS_flush

Flush a buffered PhysicsFS file handle.

Header File

Defined in <physfs.h>

Syntax

int PHYSFS_flush(PHYSFS_File *handle);

Function Parameters

PHYSFS_File * handle handle returned from PHYSFS_open*().

Return Value

(int) Returns nonzero if successful, zero on error.

Remarks

For buffered files opened for writing, this will put the current contents of the buffer to disk and flag the buffer as empty if possible.

For buffered files opened for reading or unbuffered files, this is a safe no-op, and will report success.

Thread Safety

Multiple threads can not operate on the same PHYSFS_File at the same time, but they can safely operate on different ones simultaneously.

Version

This function is available since PhysicsFS 1.0.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryPhysicsFS


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.