ReactOS 0.4.16-dev-2110-ge3521eb
fsetpos.cpp File Reference
Include dependency graph for fsetpos.cpp:

Go to the source code of this file.

Functions

int __cdecl fsetpos (FILE *const stream, fpos_t const *const position)
 

Function Documentation

◆ fsetpos()

int __cdecl fsetpos ( FILE *const  stream,
fpos_t const *const  position 
)

Definition at line 16 of file fsetpos.cpp.

17{
18 _VALIDATE_RETURN(stream != nullptr, EINVAL, -1);
19 _VALIDATE_RETURN(position != nullptr, EINVAL, -1);
20
21 return _fseeki64(stream, *position, SEEK_SET);
22}
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
int CDECL _fseeki64(FILE *file, __int64 offset, int whence)
Definition: file.c:1571
#define EINVAL
Definition: errno.h:44
#define SEEK_SET
Definition: jmemansi.c:26
Definition: parse.h:23