Go Back   The UNIX and Linux Forums > Top Forums > Programming
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-07-2002
AkumaTay AkumaTay is offline
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?