/* encrypt_menu.c This function is part of the Polysqu program. It gives the user a choice on how they would like their encrypted message written. Copyright (C) 2015, 2016 Scott C. MacCallum scm@ma.sdf.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ #include #include void encrypt_file(void); void encrypt_screen(void); void encrypt_menu(void) { int choice; printf("\n"); printf("Where do you want your encrypted message written?\n"); printf("\n"); printf("1. File\n"); printf("2. Screen\n"); printf("3. Printer\n"); printf("4. Quit\n"); printf("\n"); printf("Number: "); scanf("%d", &choice); switch (choice) { case 1: encrypt_file(); break; case 2: encrypt_screen(); break; case 3: printf("\n"); printf("This feature is not functional yet.\n"); printf("Encrypted message will be put to the screen.\n"); printf("\n"); encrypt_screen(); break; case 4: printf("\n"); printf("Good bye!\n"); printf("\n"); exit(0); default: printf("\n"); printf("ERROR, bad input.\n"); printf("\n"); exit(1); } }