home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 14 / CD_ASCQ_14_0694.iso / maj / 653 / 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.