Logo Search packages:      
Sourcecode: mingw-w64 version File versions

t_readdir.c

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <io.h>
#include <direct.h>
#include <dirent.h>

int main(int argc, char **argv)
{
  struct dirent *di;
  DIR *h = opendir (".");
  if (!h)
    return 1;
  while ((di = readdir (h)) != NULL)
    printf ("%s\n", di->d_name);
  closedir (h);
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index