首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::ftell

Defined in header <cstdio>

?

?

long ftell( std::FILE* stream );

?

?

返回文件流的文件位置指示符的当前值。stream...

如果流是以二进制模式打开的,则此函数获得的值是文件开头的字节数。

如果流是以文本模式打开的,则此函数返回的值未指定,仅在输入到std::fseek...

参数

stream

-

file stream to examine

返回值

文件位置指示符是否成功或-1L如果发生故障。也集errno在失败的时候。

另见

fgetpos

gets the file position indicator (function)

fseek

moves the file position indicator to a specific location in a file (function)

fsetpos

moves the file position indicator to a specific location in a file (function)

tellg

returns the input position indicator (public member function of std::basic_istream)

tellp

returns the output position indicator (public member function of std::basic_ostream)

c FTELL文件

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com