Files
RedBear-OS/tests/unistd/fchdir.c
T
Tibor Nagy 4381bb2a22 tests: Remove redundant return statements
When the execution reaches the end of the main functions, they implicitly return a successful status.
2019-02-20 21:09:03 +01:00

12 lines
224 B
C

#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
int main(void) {
int fd = open("..", 0, 0);
int status;
status = fchdir(fd);
printf("fchdir exited with status code %d\n", status);
close(fd);
}