home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / GIFDESC2.MOD < prev    next >
Text File  |  1990-05-11  |  3KB  |  77 lines

  1. Snorkel #1 @3459
  2. Wed May 09 09:19:25 1990
  3. 5Reference : 1GIFINFO.MOD0
  4. 5Written by: 2Snorkel #1 @34590
  5.  
  6. is that if the user makes his description too long, it runs over into the next 
  7. field.  To eliminate this problem, look for the following lines in XFER.C:
  8.  
  9. 2In "4void upload2":
  10.  
  11. add "w" to the list of integers, so that it reads:
  12.               int i,i1,i2,ok,xfer,f,4w0;
  13.  
  14. 2next,
  15.  
  16.     pl("Please enter a one line description.");         /*1 search for0 */
  17.     outstr(": ");
  18.     inputl(u.description,58);
  19.  
  20. 2replace the above lines with the following:
  21.  
  22.     if(strstr(u.filename,".GIF"))         /* 1add0 */
  23.       w=46;                               /* 1add0 */
  24.     else                                  /* 1add0 */
  25.       w=58;                               /* 1add0 */
  26.     pl("Please enter a one line description.");
  27.     outstr(": ");
  28.     inputl(u.description,w);              /* 2changed0 */
  29.  
  30.  
  31. 2Now in "4int upload2":
  32.  
  33.          add "w" to the list of integers
  34.  
  35.               int i,i1,i2,ok,f,4w0;
  36.  
  37. 2next,
  38.  
  39.          outstr(s);
  40.          inputl(u.description,58);          /* 1search for0 */
  41.  
  42. 2replace the above lines with the following:
  43.  
  44.          outstr(s);
  45.          if(strstr(u.filename,".GIF"))      /* 1add 0*/
  46.            w=46;                            /* 1add0 */
  47.          else                               /* 1add0 */
  48.            w=58;                            /* 1add0 */
  49.          inputl(u.description,w);           /*2 changed0 */
  50.  
  51. Now if you change the length of the string inserted before the description, be 
  52. sure to change the value of 4w0 from 46 to (58 minus length of your string). 
  53. The string, as written above, will print out something like:
  54.  
  55.  
  56. TEST.GIF:   34k : (320x200x256) 2This is the part you actually input.
  57.  
  58. The 4%-3d0 part in the description line is so that all the descriptions added 
  59. will come out lined up, so if you were uploading a 16 color .GIF, the line 
  60. would look like:
  61.  
  62. TEST.GIF:   34k : (320x200x16 ) 2This is the part you actually input.
  63.  
  64. So if you eliminate the parentheses around the 1%dx%dx%-3d0, be sure to change 
  65. the first value of 4w0 to 48.
  66.  
  67.  
  68.     1°
  69.   1°
  70.   1°
  71. 1°
  72. 4Snorkel 1@3459
  73.  
  74.   WWIVNet Origin: The M&M Factory   Node 3459   St. Louis, MO   (314)842-4983
  75.  
  76.            >>      Host of The Scuba Forum     Sub-Type 3459      <<
  77.