home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNPD9404.ZIP / PSPLIT.C < prev    next >
Text File  |  1994-04-03  |  815b  |  41 lines

  1. .I 39 6
  2.             ++ptr;
  3.             if (drv)
  4.             {
  5.                   strncpy(drv, path, ptr - path);
  6.                   drv[ptr - path] = NUL;
  7.             }
  8. .D 40 2
  9. .I 43 3
  10.       else if (drv)
  11.             *drv = NUL;
  12.       
  13. .D 44 2
  14. .I 53 2
  15.             if (dir)
  16.                   *dir = NUL;
  17. .D 54 1
  18. .I 58 7
  19.             if (dir)
  20.             {
  21.                   ch = *ptr;
  22.                   *ptr = NUL;
  23.                   strcpy(dir, path);
  24.                   *ptr = ch;
  25.             }
  26. .D 59 4
  27. .I 66 4
  28.             if (fname)
  29.                   strcpy(fname, ptr);
  30.             if (ext)
  31.                   *ext = NUL;
  32. .D 67 2
  33. .I 72 2
  34.             if (fname)
  35.                   strcpy(fname, ptr);
  36. .D 73 1
  37. .I 74 2
  38.             if (ext)
  39.                   strcpy(ext, p);
  40. .D 75 1
  41.