tell(3)

返回一个打开的通道的当前访问位置 · man3 · 简体中文

tell(3tcl) Tcl Built-In Commands tell(3tcl)

 

tell - 返回一个打开的通道的当前访问位置

tell channelId

 

返回一个整数值,给出 channelId 的当前访问位置。返回的这个值是可以传递给 seek 命令的一个字节偏移量,用以把通道设置到一个特定的位置。注意这个值以字节为单位的,而不是以字符为单位如 read 命令。 对于不支持搜寻(seek)的通道返回的这个值是 -1。

file(n), open(n), close(n), gets(n), seek(n)

access position, channel, seeking

寒蝉退士

2001/11/20

http://cmpp.linuxforum.net

本页面中文版由中文 man 手册页计划提供。
中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh

8.1 Tcl