The UNIX and Linux Forums
>
Top Forums
>
Programming
Listing File Info
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Listing File Info
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-07-2002
AkumaTay
Registered User
Join Date: Jul 2001
Location: Malaysia
Posts: 21
while ((direntp = readdir(dirp)) != NULL)
{
if (lstat(direntp->d_name, &statbuf) == -1){
fprintf("...");
else
printf("%s\t%s\n",direntp->d_name, statbuf.st_size);
}
Is it the way to do it?
AkumaTay
View Public Profile
Find all posts by AkumaTay