Syntax | #include <stdio.h> int flocate(FILE *stream, void *key, size_t keylen, int option); |
Description flocate()
is used to explicitly position an ISAM file with record I/O. flocate()
sets the
file position indicator of the file pointed to by stream according to the following specifications:
If keylen is less than the key length of the file, then If keylen is greater than the key length of the file,
| |||||||||||
Return val. | 0 > 0
| if successful. The record with the specified key exists. The record does not exist. if an error occurs. |
Notes | If the call was error-free (return values 0 or > 0), the If the specified key value is not present in the file (return value > 0), the current setting of In ISAM files with key duplication, |
See also |
|