TIP: Click on subject to list as thread! ANSI
echo: cis.utilities
to: 76071,41
from: Ken Drexler 75126,3427
date: 1990-08-18 11:42:10
subject: hdbackup modification

#: 6192 S9/Utilities
    18-Aug-90  11:42:10
Sb: hdbackup modification
Fm: Ken Drexler 75126,3427
To:  76071,41

swap_disk()    /* modified to allow commands and cleanout stdin */
{
    int i;
    int c;                                                /* KD */

    BEEP
    BEEP
    BEEP
    do                                              /* Start KD */
        {
        printf("\nInsert next disk and press ENTER to continue\n");
        printf("or type command line:\n");

        fgets( tempstr, sizeof(tempstr), stdin );   /* get input */

        sleep( 1 );                    /* wait for bounce if any */

        for( i = 0; i < 10; i++ )      /* clean out input stream */
            if( _gs_rdy(fileno( stdin )) > 0 )
                c = getchar;

        if( *tempstr != '\x0d' )
            system( tempstr );                 /* ignore errors */
        }
    while( *tempstr != '\x0d' );                      /* end KD */

    gets(tempstr);              */

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.