tell.c
来自「C语言库函数的原型,有用的拿去」· C语言 代码 · 共 38 行
C
38 行
/***
*tell.c - find file position
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* contains _tell() - find file position
*
*******************************************************************************/
#include <cruntime.h>
#include <io.h>
/***
*long _tell(filedes) - find file position
*
*Purpose:
* Gets the current position of the file pointer (no adjustment
* for buffering).
*
*Entry:
* int filedes - file handle of file
*
*Exit:
* returns file position or -1L (sets errno) if bad file descriptor or
* pipe
*
*Exceptions:
*
*******************************************************************************/
long __cdecl _tell (
int filedes
)
{
return(_lseek(filedes,0L,1));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?