Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
div
eof
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

_ftell_nolock, _ftelli64_nolock 

Gets the current position of a file pointer, without locking the thread.


long _ftell_nolock( 
   FILE *stream 
);
__int64 _ftelli64_nolock( 
   FILE *stream 
);

Parameters

stream

Target the FILE structure.

Same as ftell and _ftelli64. For more information, see ftell, _ftelli64.

These functions are non-locking versions of ftell and _ftelli64, respectively. They are identical to ftell and _ftelli64 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 Optional header Compatibility

ftell_nolock

<stdio.h>

<errno.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

_ftelli64_nolock

<stdio.h>

<errno.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 more compatibility information, see Compatibility in the Introduction.

Community Additions

ADD
Show:
© 2015 Microsoft