Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/winsup/testsuite/winsup.api/nullgetcwd.c
2023-03-06 14:48:14 +01:00

17 lines
273 B
C

#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);
}