Welcome to mirror list, hosted at ThFree Co, Russian Federation.

nullgetcwd.c « winsup.api « testsuite « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25bdf45149ba0d7f66178734ad930f101cfe4a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
int
main (int argc, char **argv)
{
  char *cwd = getcwd (NULL, 256);
  if (cwd == NULL)
    {
      fprintf (stderr, "%s: getcwd returns NULL\n", argv[0]);
      exit (1);
    }

  exit (0);
}