telldir

Returns the current location associated with a specified directory stream. Performs operations on directories.

Format

#include  <dirent.h>

long int telldir  (DIR *dir_pointer);

Arguments

dir_pointer
A pointer to the DIR structure of an open directory.

Description

This function returns the current location associated with the specified directory stream.

Return Values
The current location. 
-1  Indicates an error and is further specified in the global errno. 


Previous Page | Next Page | Table of Contents | Index