مشاركة عبر


_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 
);

Parámetros

  • stream
    Pointer to the FILE structure.

  • offset
    Number of bytes from origin.

  • origin
    Initial position.

Valor devuelto

Same as fseek, _fseeki64 respectively.

Comentarios

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.

Requisitos

Function

Required header

fseek

<stdio.h>

_fseeki64

<stdio.h>

For additional compatibility information, see Compatibility in the Introduction.

Equivalente en .NET Framework

Vea también

Referencia

Stream I/O

ftell, _ftelli64

_lseek, _lseeki64

rewind