| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/stdio/ |
Upload File : |
//
// fgetpos.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines fgetpos(), which gets the file position in an opaque internal format.
//
#include <corecrt_internal_stdio.h>
// Gets the file position in the internal fpos_t format. The returned value
// should only be used in a call to fsetpos(). Our implementation happens to
// just wrap _ftelli64() and _fseeki64(). Return zero on success; returns -1
// and sets errno on failure.
extern "C" int __cdecl fgetpos(FILE* const stream, fpos_t* const position)
{
_VALIDATE_RETURN(stream != nullptr, EINVAL, -1);
_VALIDATE_RETURN(position != nullptr, EINVAL, -1);
*position = _ftelli64(stream);
if (*position == -1)
return -1;
return 0;
}