home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / GOSUB.C < prev    next >
Text File  |  1990-10-12  |  1KB  |  60 lines

  1. First, go to BBS.C in void mainmenu and do this:
  2. */
  3.  
  4.  
  5. void mainmenu()
  6. {
  7.   char *s,*num,s1[100],s2[81];     /* <- add the *num  */
  8.   int i,done1;                     /*  add the done1   */
  9.  
  10. /*
  11. Now go down further and add this case  above case 'A':
  12. */
  13.  
  14.       case '#':
  15.         do {
  16.           done1=0;
  17.           nl();
  18.           prt(2,"Go to which sub number? (?=List): ");
  19.           num=mmkey(0);
  20.           if (strcmp(num,"?")==0)
  21.             sublist();
  22.           for (i=0; i<32; i++)
  23.             if (strcmp(usub[i].keys,num)==0) {
  24.               cursub=i;
  25.               done1=1;
  26.             }
  27.         } while ((!hangup) && (!done1));
  28.         break;                            /* added to original mod */
  29.  
  30. /*
  31. Now go down even farther to dlmainmenu() and do this:
  32. */
  33.  
  34. void dlmainmenu()
  35. {
  36.   char *s,*num,s1[81],s2[81];     /* Again, add the *num  */
  37.   int i,i1,abort,done1;           /* Again, add the done1 */
  38.  
  39. /*
  40. Now go down and add this case before case 'A':
  41. */
  42.  
  43.  
  44.       case '#':
  45.         do {
  46.           done1=0;
  47.           nl();
  48.           nl();
  49.           prt(2,"Go to which directory number? (?=List): ");
  50.           num=mmkey(1);
  51.           if (strcmp(num,"?")==0)
  52.             dirlist();
  53.           for (i=0; i<64; i++)
  54.             if (strcmp(udir[i].keys,num)==0) {
  55.               curdir=i;
  56.               done1=1;
  57.             }
  58.         } while ((!hangup) && (!done1));
  59.         break;
  60.