home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / STMPMOD.ZIP / STIMP10.MOD < prev    next >
Text File  |  1992-07-30  |  2KB  |  42 lines

  1. ┌────────────────────────────────────────────────────────────────────────┐
  2. │Mod : STIMP10.MOD                                                       │
  3. │Version: WWIV 4.20                                                      │
  4. │Author : Stimpy #1 @1002 NuclearArmsNET 442-1601                        │
  5. │Description: Real simple header for voting questions (good for          │
  6. │             modders.)                                                  │
  7. │Diffculty: ▓░░░░░░░░░                                                   │
  8. │Disclaimer: Always backup your source. If you get an incredible urge to │
  9. │            sautee your cat, it's not my fault!                         │
  10. └────────────────────────────────────────────────────────────────────────┘
  11.  
  12.    = existing line
  13.    + add line
  14.    - deleted line
  15.    * change line
  16.  
  17. In MISCCMD.C
  18.  
  19. int print_question(int f, int i, int ii)
  20. ={
  21. =  char s[81],s1[81],s2[81];
  22. =  int i1,i2,i3,t,t1,abort;
  23. =  votingrec v;
  24. =  voting_response vr;
  25.  
  26. =  lseek(f,((long) ii)*sizeof(votingrec),SEEK_SET);
  27. =  read(f,(void *)&v,sizeof(votingrec));
  28. =  abort=0;
  29. =  outchr(12);
  30. *  sprintf(s,"3│                          7Voting question 1#%-2d                              3│",i);
  31. +  pl("3╒═══════════════════════════════════════════════════════════════════════════╕");
  32. =  pla(s,&abort);
  33. *  npr("3│ 1%-73s 3│\r\n",v.question); /*was "pla(v.question,&abort);*/
  34. +  pl("3╘═══════════════════════════════════════════════════════════════════════════╛");
  35. =  nl();
  36. =  t=0;
  37. =  for (i1=0; i1<v.numanswers; i1++) {
  38. =    vr=v.responses[i1];
  39. =    t+=vr.numresponses;
  40. =  }
  41.  
  42. Now save and re-compile.