diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-01-07 10:36:35 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-01-07 10:36:35 +1300 |
commit | ce7bd22af9d55eada0cff15f719f338dd212f2e0 (patch) | |
tree | 0c63840969a53b41140a9cc4349a00b7b1dddb8c /crypt.h | |
parent | More idiomatic Makefile (diff) | |
parent | Add VERSION (diff) | |
download | crypt-e34774ebe7422a6b873fc9c463ac41f2afa4671d.tar.gz (sig) crypt-e34774ebe7422a6b873fc9c463ac41f2afa4671d.zip |
Merge branch 'release/v1.0.0'v1.0.0
* release/v1.0.0:
Add VERSION
More refactoring and rearranging, commenting
Switch to tab indentation
Refactor usage function and output
Rename to README.md
Diffstat (limited to 'crypt.h')
-rw-r--r-- | crypt.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,8 +1,9 @@ #define _XOPEN_SOURCE -#include <ctype.h> +#include <errno.h> #include <stdio.h> #include <stdlib.h> -#include <unistd.h> +#include <string.h> /* strerror(3) */ +#include <unistd.h> /* crypt(3) */ -#define OPTSTRING "h" -#define USAGE "USAGE: crypt KEY SALT" +void usage(FILE *, int); +void error(char *); |