Skip to content
Snippets Groups Projects
Forked from redox-os / relibc
1677 commits behind the upstream repository.
error.c 216 B
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>

int main(void) {
    chdir("nonexistent");
    printf("errno: %d = %s\n", errno, strerror(errno));
    perror("perror");
    return 0;
}