home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_01_02
/
1n02055a
< prev
next >
Wrap
Text File
|
1990-07-09
|
266b
|
16 lines
/*
** Listing 2 - Convert Unix-style pathnames to DOS-style
*/
#include <stddef.h>
#include <string.h>
char *unix2dos(char *path)
{
char *p;
while (NULL != (p = strchr(path, '/')))
*p = '\\';
return path;
}