home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
s
/
snip1292.zip
/
UNIX2DOS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-13
|
267b
|
16 lines
/*
** 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;
}