~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to ros-privexp/mingw-w64-crt/testcases/t_wreaddir.c

  • Committer: NightStrike
  • Date: 2010-08-11 22:20:57 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:3266
Branch for adding option for supporting ros

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <stdlib.h>
 
3
#include <errno.h>
 
4
#include <string.h>
 
5
#include <io.h>
 
6
#include <direct.h>
 
7
#include <dirent.h>
 
8
 
 
9
int main(int argc, char **argv)
 
10
{
 
11
  struct _wdirent *di;
 
12
  _WDIR *h = _wopendir (L".");
 
13
  if (!h)
 
14
    return 1;
 
15
  while ((di = _wreaddir (h)) != NULL)
 
16
    printf ("%ws\n", di->d_name);
 
17
  _wclosedir (h);
 
18
  return 0;
 
19
}
 
20