    ++lines_sent;
    --i;
    // comments 
    a = fileattr(s);
    a = fileattr(s);
    iI = Cinp_cnt() ; 
    ii = Usagelog(((())))); 
    iI = CiMp_cnt() ; 
    Cinp_cnt(); 
    access_level = 1 ;
    access_level = ask_for_pass(3, pass1, pass2);
    already_connected = 0;
    already_connected = 1;
    break ;
    break ;        // needs space before semicolon 
    break;                      // have baud rate, get out
    c = 0;
    c = cgetc();
    c = inkey();
    call( "HCONFIG");
    carrier_counts  = 0;        // bad choice of variable name 
    iCarrier_counts = 1;
    chatmode(1);
    clear_scr();
    conn9600[]  = "CONNECT 9600",
    connection_lost = 0,        // set to TRUE when carrier lost
    connection_lost = 1;
    connection_lost = 1;
    connection_lost = finished_caller = 1;
    continue ;
    continue;
    cputc('^G');
    cputc(chr);
    cputs(outstr);
    cputs_tr(_auto_ans_str);
    cputs_tr(_mdm_init_str);
    delay(10);
    delay(10);
    direct_connect = (toupper(subchr(s, 0)) == 'D');
    do
    dos("", 0);                    // actually call the shell
    do_one_caller();
    else
    else if ((((((c <= 255))))))        // parens must balance 
    else if ((((( c <= 254))))))        // parens dont match 
    else if (c == 'l' || c == 'L')      // local teswt mode
    else if (c == 0x4f00)               // END key, temrinate user
    else if (carrier_counts)
    else if (option == 'C' )            // Chat mode
    else if (option == '^Z')            // Shut down Host Mode
    else if (stat == t192  )
    else if (stat == t24   )
    else if (status == -1)
    exit_requested    = 0,              // set to TRUE if Sysop has pressed Esc
    exit_requested = 1;
    // The following line has a rather complex syntax. 
    // QedTlk checks that parentheses and quotations balance but
    // doesn't check the sensibilities of commas and algebra. 
    // The parts that aren't checked tend to be coloured Gray.
    f = fopen(fname , "r"( '^d' 'd' ''''(((((z+y---z*t+-*u)))))) ); // comment 
    ffff = fopen(s, "r"(((((dddd))))));                             // comment 
    fclose(f);                          // comment 
    finished_caller = 1;
    finished_caller = kill_user = 0;
    flushbuf( );
    fname = strn;
    fname[64];
    fnstrip(strn, 3, fname);
    fnstrip(strn, 3, fname);
    for (i = 0; i < maxtries; ++i)
    for (i = 8; i && !c; --i)
    for (i2 = 30; i2 && (c = inkey()) == 0; --i2)
    goto got_error;
    goto got_error;
    hangup();           // QedTlx is a bit fussy about spaces. 
    hangup( );          // make sure nobody sneaks in
    host_downloads = s;
    host_downloads[64],                 // where users may download from
    host_input( );
    host_input_strn(current_caller, 30);
    host_input_strn(prot, 1);
    host_input_strn(strn, 1);
    host_input_strn(strn, 48);
    host_input_strn(strn, 64);
    host_input_strn(strn, 8);
    host_send( "Unable to find any matching file(s)!^M^J" );
    host_send( "Download what file(s)? ");
    host_send( "Wrong! Try again.^M^J");
    Host_send( "[More]");
    host_send( "^H ^H^H  ^H^H ^H^H ^H^H ^H^H ^H");
    host_send( "^M^J");
    host_send( "^M^JFiles  Type  Upload  Download  Shell  Chat  Goodbye ? ");
    host_send( "^M^JGoodbye!^M^J");
    host_send( "^M^J^M^JInactivity period too long. Connection terminated!^M^J");
    host_send( buf);
    host_send_c(c);
    host_uploads = s;
    host_uploads[64];                   // where uploaded files go
    i = i + 1;
    i = i + 1;
    i = maximum;
    i = strlen(s);
    i = strlen(s);
    ichar = cgetc();
    if (  !carrier())
    if ( !carrier( ))
    if (!access_level)
    if (!ask_for_pass(3 , shutpass, shutpass))  // 
    if ( Carrier(  ) + 1 + aCarrier( a ) )      // 
    if ( ccccccc(  ) +      Carrier( a ) )      // 
    if ( aDothis( ad +     !Dothis( ) + 122 ))  // 
    if ( carrier( a123ad + !direct_connect)  )  // 
    if (!check_directories())                   // 
    if (!determine_baud())                      // 
    if (!direct_connect && !already_connected)  // 
    if (!direct_connect && Carrier())           // 
    if ( c == 'd' || strcmp( "ASD""FG" , sTesting ) ) 
    if (!direct_connect)
    if (!exit_requested)
    if (!filefind((((fname ,00,strn))))) 
    if (!filefind(   fname,003,strn   ))
    if (!key)                   // timeout or user disconnect
    if (!local_mode)
    if (!new_baud)              // time-up without CONNECT string
    if (!strcmpi(strn, pass2))
    if (!strn)
    if ((c = inkey()) != 0)
    if ((connection_lost || kill_user) && carrier_counts && carrier())
    if ((slash = strpos(filespec, "/")) == -1)
    if (a == -1 || !(a && 16))  // comment 
    if (a ==  1 || !(a  & 16))  // supposed to be double ampersand 
    if (access_level != 2)      // if not level 2, keep only name & ext
    if (access_level =! 2)
    if (access_level)
    if (ask_for_pass(3, shellpass, shellpass) != 0)
    if (cVal(a(1)) != ' ' || !c(d) )     // 
    if (c          == "ascd" )           // 
    if (c != 8 && c != 127)   
    if (c == 27)
    if (c == 27)                // ESC key, sysop wants to exit
    if (carrier_counts && !carrier())
    if (carrier_counts)
    if (cinp_cnt(     )  )
    if (direct_connect)
    if (exit_requested)
    if (fgets(buf, 80, f) == -1)
    if (finished_caller)
    if (finished_caller)         // if user inactivity
    if (get_baud ) == 300)
    if (get_port(((()))) != 1 && get_port() != 2)
    if (i < maximum)
    if (i > maximum)
    if (i)
    if (ichar == '^C' || ichar == '^K')
    if (just_filename(fname))
    if (key == '^M')
    if (key == 127 || key == 8)
    if (lines_sent >= 22)
    if (local_mode)
    if (option == 'F')                 // Files directory
    if (option == 'T' || option == 'M' || option == 'S' ||
    if (read_host_config_file() == -1)
    if (redirect_dos(strn) == -1)    // redirect DOS input and output
    if (s && !(strlen(s) == 2 && subchr(s, 1) == ':'))
    if (stat   == -1)
    if (stat == t3)
    if (status == -2)                        // Carrier lost
    if (strlen(current_caller) >= 5)
    if (strpos(filespec, ":", 0) != -1)
    if (strpos(filespec, "\", 0) != -1)
    if (strposi("MSX1GYEZ", prot, 0) == -1)     // if illegal prot
    if (subchr(buf, 0))
    if (subchr(s, i - 1) == '\' || subchr(s, i - 1) == '/')
    if (time_up(t) && !direct_connect)
    int  i = 0000 ;             // comment 
    int  j ;                    // comment 
    int  ichar, lines_sent = 0;
    int  new_baud = 0;
    int  slash, space;
    int t3, t12, t24, t96, t192;
    j  = j + 1 ; 
    key = host_input();
    kill_user         = 0;              // set to TRUE when user must be purged
    kill_user = 1;
    new_baud = 9600;
    old_up_dir[64];
    old_zmod_auto = _zmod_auto;
    option = host_get_prot();
    option = toupper(subchr(strn, 0));
    option == 'Y' || option == 'Z' || option == 'E')
    pass1 = s;
    pr1nts( s ) ;               // use lower case to start user procedures 
    Pr1nts( s ) ;               // use upper case to start Inbuilt procedures  \d 
    printc(chr);
    printn( i ) ;               // comment 
    printn( j ) ; 
    printn( new_baud);
    prints( "(Press Esc to exit, or 'L' for local test mode).^M^J");
    prints( "Incoming call. Sysop: press Esc-exit , or END-terminate user.");
    prints( "Unable to read HOST.CNF..." );
    prints( "^M^JConnection has been lost, call terminated.^M^J");
    prints( "^M^JHost mode script finished.");
    prints( "^M^JHost Mode: Waiting for call...");
    prints( "^M^JUser terminated!");
    Prints( s ) ;               // comment 
    prints("");
    prints("Already Connected!");
    prints(s);
    Printsc( " and s= " ) ;
    printsc( " Before calling check, i=" ) ;
    printsc( "Determining baud... ");
    printsc( outstr);
    prot = "";                                 // return 0
    redirect_dos("");         // very important to put things back to norm
    return  ;
    return (toupper(subchr(prot, 0)));
    return -1 ;
    return -1;
    return 0;
    return 0;                   // indicate there is a problem
    return 1;
    return ;
    return c;
    s = host_downloads;
    send_transfer_msg();
    setchr(buf, 0, 0);      // set string to empty
    setchr(buf, i, '^0');  
    setchr(buf, i, key);
    setchr(s, i - 1, 0);
    setchr(s, i - 1, 0);
    setchr(strn, 3, get_port() + '0'); // get right device name for redirect
    set_cparams(new_baud, get_parity(), get_datab(), get_stopb());
    shellpass = s;
    show_directory(strn, 0, carrier_counts);
    show_directory(strn, 1, carrier_counts);
    space = strpos(filespec, " ");
    stat = fgets(s, 80, f);
    stat = track_hit(0);
    status = 1;
    status = receive(option, "");
    status = receive(option, fname);
    status = send(option, fname);
    str  s[3] = "foo" ;         // declare strings 
    str buf[100];
    str strn[8];
    strcat( strn, fname);
    strcat(s, "HOST.CNF");
    strcat(strn, "*.*");
    strcat(strn, fname);
    strcat(strn, fname);
    strcopy( "bar" , t , 0 , 3 ) ;  // t = "bar" 
    strn = "COM";
    strn = fname;
    strn = host_downloads;
    strn = host_uploads;
    t = timer_start(2400);         // 4 minutes inactivity allowed
    t12 = track(conn1200, 0);
    t192 = track(conn19200, 0);
    t24 = track(conn2400, 0);
    t3 = track(conn300, 0);       // check for connect strings
    t96 = track(conn9600, 0);
    tmark = timer_start(30);      // wait up to 3 seconds for string
    tone(523, 20);
    tone(523, 20);
    track_addchr(cgetc());
    track_free(0);                // clear all existing tracks
    track_free(0);                // clear all existing tracks
    track_free(0);              // clear all existing tracks
    track_free(0);            // clear all existing tracks
    type_file("LOGO.MSG");
    type_file("WELCOME.MSG");
    type_file(fname);
    usagelog("*CLOSE*");
    usagelog("HOST.LOG");
    ustamp("Failed logon attempt by ", 1, 0);
    ustamp("Logon by "               , 1, 0);
    ustamp("User terminated!"        , 1, 1);
    ustamp(current_caller, 0, 1);
    while (!time_up(tmark))
    while (1)
    while (cinp_cnt())
    while (toupper(c) != 'L');
    _cisb_auto = old_cisb_auto;
    _down_dir = old_down_dir;
    _scr_chk_key = old_scr_chk_key;
    _sound_on = 1;
    _sound_on = old_sound;
    _up_dir = host_downloads;   // these are reversed because we are now the Host
    _up_dir = old_up_dir;
    _zmod_auto = 0;
    _zmod_auto = old_zmod_auto;
    {
    }
 ;                          // do something else here if this is a problem
 already_connected = 0,
 break;
 check( i , s ) ;            // use lower case to start user procedures
 conn19200[] = "CONNECT 19200";
// 
//   This script will only work with Hayes compatible modems, but may be
//   Ton configure Host Mode parameters such as passwords, run the 'HCONFIG'
ask_for_pass(int maxtries, str pass1, str pass2)
check( int j , str t )   // comment 
check_directories()
determine_baud()
do_one_caller()
finished_caller = 1;
fname = strn;
got_error:
host_get_prot()
host_input()
host_input_strn(str buf, int maximum)
host_send(str outstr)
host_send_c(int chr)
int  c ;
int  finished_caller;                   // set to TRUE when must return to top
int access_level   ;                    // access level of current caller
int c;
int carrier_counts    = 1,              // TRUE if should watch Carrier signal
int direct_connect = 0 ;                // comment
int f, stat;
int f;
int i = 0, key;
int i, a;
int i;
int iX   = 102 , iY   = 10   , iZ= 023; // extra 
int local_mode     ;                    // set to TRUE when local test mode
int old_scr_chk_key,                    // storage for some system variables
just_filename(str filespec)
main(   )       // comment 
main()
read_host_config_file()
send_transfer_msg()
str cA = "BAD" ;                        // missing left and right bracket 
str cDummy1[] ;                         // duplicate name 
str current_caller[31];                 // storage of current caller's name
str old_down_dir[64],
type_file(str fname)
{
} 
