FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
file_hconvpath.c
Go to the documentation of this file.
1
/* path conversion */
2
3
#include "
fb.h
"
4
5
void
fb_hConvertPath
(
char
*path )
6
{
7
ssize_t i, len;
8
9
DBG_ASSERT
( path !=
NULL
);
10
11
len = strlen( path );
12
for
(i = 0; i < len; i++)
13
{
14
#if defined( HOST_DOS ) || defined( HOST_MINGW ) || defined( HOST_XBOX )
15
if
( path[i] ==
'/'
)
16
path[i] =
'\\'
;
17
#else
18
if
( path[i] ==
'\\'
)
19
path[i] =
'/'
;
20
#endif
21
}
22
}
rtlib
file_hconvpath.c
Generated on Thu Jan 23 2014 19:40:11 for FreeBASIC by
1.8.4