#include<stdio.h>
#include<dirent.h>
int main()
{
DIR *dirpt=NULL;
struct dirent *entry=NULL;
printf("test\n");
dirpt=opendir("/home/mrhuang/Desktop/mrhuang/recieved");
printf("test\n");
if(dirpt==NULL)
{
printf("open dir error!\n");
return 1;
}
else
{
printf("test\n");
while(entry=readdir(dirpt));
{
printf("test\n");
printf("%g\n",entry);
printf("%s\n",entry->d_name);
printf("test1\n");
}
closedir(dirpt);
}
return 0;
}