FreeBASIC  0.91.0
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 }