summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/SNIP/unix2dos.c
blob: 739d09669e8243bca77e78a5e9d0c5f28675126e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
**  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;
}