+
+ print_puzzle (p);
+ char ch = getchar ();
+}
+
+/* set the password for the puzzle */
+void do_set_password (Puzzle *p)
+{
+ char* password;
+ password = getpass (INPUT_PASSWORD);
+ /* if empty reset the password to nothing */
+ if (strlen(password) == 0)
+ {
+ set_puzzle_password (p, "\0");
+ printf (PASSWORD_RESET);
+ char ch = getchar ();
+ }
+ /* set the password */
+ else
+ {
+ set_puzzle_password (p, (const char* )password);
+ printf (PASSWORD_SET);
+ char ch = getchar ();
+ }