User`s guide

KwikNet Virtual File System
K
A
DAK
265
kvf_tell kvf_tell
Purpose Determine the Current Position of the File Pointer in a Virtual File
Used by
n Task o ISP o Timer Procedure o Restart Procedure n Exit Procedure
Setup Prototype is in file KN_FILES.H.
#include "KN_LIB.H"
#include "KN_FILES.H"
long kvf_tell(KN_VFILE *vfd;
Description Vfd is a virtual file descriptor identifying a currently open virtual file.
Returns If successful, a value of n is returned where n is the position of the file
pointer within the virtual file. If the file pointer is at the end of the file,
the value n will be the number of bytes in the file.
If parameter vfd does not reference an open virtual file and there is no
underlying file system to handle the request, a value of -1 is returned.
Note If the parameter vfd does not reference a currently open virtual file, the
request is passed on via the KwikNet Universal File System Interface to the
underlying real file system, if one exists. In such a case, the return value
will be dictated by the equivalent ftell() function.
See Also kvf_fsize(), kvf_seek()