/*
**  UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
**
**  public domain by Bob Stout
*/

char *unix2dos(char *path)
{
      char *p;

      for (p = path; *p; ++p)
            if ('/' == *p)
                  *p = '\\';
      return path;
}


syntax highlighted by Code2HTML, v. 0.9.1