logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface

Application Usage

       None.

Description

       The  telldir()  function shall obtain the current location associated with the directory stream specified
       by dirp.

       If the most recent operation on the directory stream was a seekdir(),  the  directory  position  returned
       from the telldir() shall be the same as that supplied as a loc argument for seekdir().

Errors

       No errors are defined.

       Thefollowingsectionsareinformative.

Examples

       None.

Future Directions

       None.

Name

       telldir — current location of a named directory stream

Prolog

       This  manual  page  is part of the POSIX Programmer's Manual.  The Linux implementation of this interface
       may differ (consult the corresponding Linux manual page for details of Linux behavior), or the  interface
       may not be implemented on Linux.

Rationale

       None.

Return Value

       Upon  successful  completion,  telldir()  shall  return  the  current location of the specified directory
       stream.

See Also

fdopendir(), readdir(), seekdir()

       The Base Definitions volume of POSIX.1‐2017, <dirent.h>

Synopsis

       #include <dirent.h>

       long telldir(DIR *dirp);

See Also