ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

char get_key ( char valid,
char prompt 
)

Definition at line 102 of file common.c.

Referenced by check_backup_boot(), check_dir(), check_file(), handle_dot(), lfn_add_slot(), lfn_check_orphaned(), lfn_get(), read_fat(), read_fsinfo(), update_free(), and VfatChkdsk().

{
#if 0
    int ch,okay;

    while (1) {
    if (prompt) VfatPrint("%s ",prompt);
    fflush(stdout);
    while (ch = getchar(), ch == ' ' || ch == '\t');
    if (ch == EOF) exit(1);
    if (!strchr(valid,okay = ch)) okay = 0;
    while (ch = getchar(), ch != '\n' && ch != EOF);
    if (ch == EOF) exit(1);
    if (okay) return okay;
    VfatPrint("Invalid input.\n");
    }
#else
    return 0;
#endif
}

Generated on Fri May 25 2012 05:10:38 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.