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