ReactOS
0.4.16-dev-2104-gb84fa49
tell.cpp
Go to the documentation of this file.
1
//
2
// tell.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Defines _tell(), which gets the current position of the file pointer.
7
//
8
#include <
corecrt_internal_lowio.h
>
9
#include <stdio.h>
10
11
12
13
// Gets the current position of the file pointer, without adjustment for
14
// buffering. Returns -1 on error.
15
extern
"C"
long
__cdecl
_tell
(
int
const
fh)
16
{
17
return
_lseek
(fh, 0,
SEEK_CUR
);
18
}
corecrt_internal_lowio.h
_lseek
__msvcrt_long CDECL _lseek(int fd, __msvcrt_long offset, int whence)
Definition:
file.c:1479
__cdecl
#define __cdecl
Definition:
corecrt.h:121
SEEK_CUR
#define SEEK_CUR
Definition:
stdio.h:44
_tell
long __cdecl _tell(int const fh)
Definition:
tell.cpp:15
sdk
lib
ucrt
lowio
tell.cpp
Generated on Wed Jan 7 2026 06:16:08 for ReactOS by
1.9.6