mirror of
https://github.com/Chuyu-Team/VC-LTL5.git
synced 2026-10-22 16:28:36 +08:00
19 lines
414 B
C++
19 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);
|
|
}
|