Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
_fseek_nolock, _fseeki64_nolock
div
eof
Collapse the table of content
Expand the table of content

_fseek_nolock, _fseeki64_nolock 

Moves the file pointer to a specified location.


int _fseek_nolock( 
   FILE *stream,
   long offset,
   int origin 
);
int _fseeki64_nolock( 
   FILE *stream,
   __int64 offset,
   int origin 
);

Parameters

stream

Pointer to the FILE structure.

offset

Number of bytes from origin.

origin

Initial position.

Same as fseek, _fseeki64 respectively.

These functions are the non-locking versions of fseek and _fseeki64, respectively. These are identical to fseek and _fseeki64 except that they are not protected from interference by other threads. These functions might be faster because they do not 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.

Function Required header Compatibility

fseek

<stdio.h>

ANSI, Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

_fseeki64

<stdio.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

For additional compatibility information, see Compatibility in the Introduction.

Community Additions

ADD
Show:
© 2015 Microsoft