Skip to content

Instantly share code, notes, and snippets.

@uhziel
Created September 30, 2011 14:08
Show Gist options
  • Save uhziel/1253839 to your computer and use it in GitHub Desktop.
Save uhziel/1253839 to your computer and use it in GitHub Desktop.
apue.2e.fig1.8.c
#include "apue.h"
#include <errno.h>
int main(int argc, char *argv[])
{
errno = E2BIG;
printf("E2BIG: %s", strerror(errno));
errno = EAGAIN;
perror(argv[0]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment