4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
11 lines
202 B
C
11 lines
202 B
C
#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");
|
|
}
|