Corrected example code for PHYSFS_enumerate in physfs.h

This commit is contained in:
Ryan C. Gordon 2019-08-24 21:06:54 -04:00
parent 19ea59109d
commit 56aaae4949
1 changed files with 2 additions and 2 deletions

View File

@ -2702,10 +2702,10 @@ typedef PHYSFS_EnumerateCallbackResult (*PHYSFS_EnumerateCallback)(void *data,
*
* \code
*
* static int printDir(void *data, const char *origdir, const char *fname)
* static PHYSFS_EnumerateCallbackResult printDir(void *data, const char *origdir, const char *fname)
* {
* printf(" * We've got [%s] in [%s].\n", fname, origdir);
* return 1; // give me more data, please.
* return PHYSFS_ENUM_OK; // give me more data, please.
* }
*
* // ...