telldir

Autres langues

Langue: ja

Version: 1993-03-31 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

名前

telldir - ディレクトリストリーム中の現在位置を返す

書式

 #include <dirent.h>
 
 off_t telldir(DIR *dir);
 

説明

telldir() 関数は、ディレクトリストリーム dir に結びつけられた 現在位置を返す。

返り値

成功した場合、 telldir() 関数はディレクトリストリーム中の現在位置を返す。 エラーの場合、-1 が返されて、 errno が適切に設定される。

エラー

EBADF
ディレクトリストリームディスクリプタ dir が無効である。

準拠

4.3BSD, POSIX.1-2001.

関連項目

closedir(3), opendir(3), readdir(3), rewinddir(3), scandir(3), seekdir(3)