home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNIP9404.ZIP / UNIX2DOS.C < prev    next >
C/C++ Source or Header  |  1994-04-03  |  267b  |  16 lines

  1. /*
  2. **  UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
  3. **
  4. **  public domain by Bob Stout
  5. */
  6.  
  7. char *unix2dos(char *path)
  8. {
  9.       char *p;
  10.  
  11.       for (p = path; *p; ++p)
  12.             if ('/' == *p)
  13.                   *p = '\\';
  14.       return path;
  15. }
  16.