Skip to content
Snippets Groups Projects
Commit 1127c36c authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add strerror to error test

parent b7b49d58
No related branches found
No related tags found
No related merge requests found
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
int main(int argc, char** argv) {
chdir("nonexistent");
printf("errno: %d\n", errno);
chdir("nonexistent");
printf("errno: %d = %s\n", errno, strerror(errno));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment