Public feed #533048

Something

public text v1 · immutable
Raw Edit
·published 2007-06-03 10:13 UTC
rendered paste body
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
     
int main (void)
{
  DIR *dp;
  struct dirent *ep;
     
  dp = opendir ("C:/Dev-Cpp");
  if (dp != NULL) 
  {
    while (ep = readdir (dp)) puts (ep->d_name);
    (void) closedir (dp);
  }
  else
  {
    perror ("Nie mozna otworzyc katalogu");
  }
  getch();
  return 0;
}