aboutsummaryrefslogtreecommitdiff
path: root/crypt.h
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-01-07 10:36:35 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-01-07 10:36:35 +1300
commitce7bd22af9d55eada0cff15f719f338dd212f2e0 (patch)
tree0c63840969a53b41140a9cc4349a00b7b1dddb8c /crypt.h
parentMore idiomatic Makefile (diff)
parentAdd VERSION (diff)
downloadcrypt-ce7bd22af9d55eada0cff15f719f338dd212f2e0.tar.gz
crypt-ce7bd22af9d55eada0cff15f719f338dd212f2e0.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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/crypt.h b/crypt.h
index 2b8145d..6612e01 100644
--- a/crypt.h
+++ b/crypt.h
@@ -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 *);