_fseek_nolock
, _fseeki64_nolock
Moves the file pointer to a specified location without locking.
int _fseek_nolock(
FILE *stream,
long offset,
int origin
);
int _fseeki64_nolock(
FILE *stream,
__int64 offset,
int origin
);
stream
Pointer to the FILE
structure.
offset
Number of bytes from origin
.
origin
Initial position.
Same as fseek
and _fseeki64
, respectively.
These functions are the non-locking versions of fseek
and _fseeki64
, respectively. These functions are identical to fseek
and _fseeki64
, except that they aren't protected from interference by other threads. These functions might be faster because they don't incur the overhead of locking out other threads. Use these functions only in thread-safe contexts such as single-threaded applications or where the calling scope already handles thread isolation.
By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.
Function | Required header |
---|---|
_fseek_nolock , _fseeki64_nolock |
<stdio.h> |
For more compatibility information, see Compatibility.