home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
snippet.exe
/
UNIX2DOS.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-04-13
|
267 b
|
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;
}