The UNIX and Linux Forums
>
Operating Systems
>
HP-UX
Getting the index of the last entry in a directory
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Getting the index of the last entry in a directory
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
06-22-2009
jim mcnamara
...@...
Join Date: Feb 2004
Location: NM
Posts: 5,807
You want seekdir() and telldir() in dirent.h
However, be sure to read your manpage: seekdir() under
POSIX
basically has to know the offset ahead of time, there is no SEEK_END equivalent (as in lseek() ). Your implementation may behave differently.
jim mcnamara
View Public Profile
Find all posts by jim mcnamara
Find jim mcnamara's past nominations received
Find jim mcnamara's present nominations given