Skip to content

Instantly share code, notes, and snippets.

@wkz
Created April 2, 2014 09:23
Show Gist options
  • Save wkz/9930777 to your computer and use it in GitHub Desktop.
Save wkz/9930777 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ $1 -eq 0 ]; then
exit 0;
fi
msg=`cc -E -dM /usr/include/errno.h | egrep "^#define E\w+ $1$" | cut -d" " -f 2,3`
echo "$msg "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment