summaryrefslogtreecommitdiff
path: root/checkpasswd/tryuserpw.c
diff options
context:
space:
mode:
Diffstat (limited to 'checkpasswd/tryuserpw.c')
-rw-r--r--checkpasswd/tryuserpw.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/checkpasswd/tryuserpw.c b/checkpasswd/tryuserpw.c
new file mode 100644
index 0000000..fb14623
--- /dev/null
+++ b/checkpasswd/tryuserpw.c
@@ -0,0 +1,9 @@
+#include <userpw.h>
+
+void main()
+{
+ struct userpw *upw;
+
+ upw = getuserpw("");
+ puts(upw->upw_passwd);
+}