mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 04:08:28 +00:00

Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
18 lines
414 B
C++
18 lines
414 B
C++
//
|
|
// tell.cpp
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
// Defines _tell(), which gets the current position of the file pointer.
|
|
//
|
|
#include <corecrt_internal_lowio.h>
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
// Gets the current position of the file pointer, without adjustment for
|
|
// buffering. Returns -1 on error.
|
|
extern "C" long __cdecl _tell(int const fh)
|
|
{
|
|
return _lseek(fh, 0, SEEK_CUR);
|
|
}
|