The file that provides functions ported from Unix in stdio.h.  
More...
|  | 
| #define | EVIL_PATH_SEP_SWAP(p,  s1,  s2) | 
|  | 
| #define | EVIL_PATH_SEP_WIN32_TO_UNIX(p)   EVIL_PATH_SEP_SWAP(p, '\\', '/') | 
|  | 
| #define | EVIL_PATH_SEP_UNIX_TO_WIN32(p)   EVIL_PATH_SEP_SWAP(p, '/', '\\') | 
|  | 
|  | 
| int | evil_rename (const char *src, const char *dst) | 
|  | Emulate the rename() function on Windows.  More... 
 | 
|  | 
| int | evil_mkdir (const char *dirname, mode_t mode) | 
|  | Wrap the _mkdir() function on Windows.  More... 
 | 
|  | 
The file that provides functions ported from Unix in stdio.h. 
◆ EVIL_PATH_SEP_SWAP
      
        
          | #define EVIL_PATH_SEP_SWAP | ( |  | p, | 
        
          |  |  |  | s1, | 
        
          |  |  |  | s2 | 
        
          |  | ) |  |  | 
      
 
Value:do { \
     char *_evil_path_tmp; \
     _evil_path_tmp = p; \
     while (*_evil_path_tmp) \
       { \
          if (*_evil_path_tmp == s1) \
            *_evil_path_tmp = s2; \
          _evil_path_tmp++; \
       } \
   } while (0)
 
 
◆ evil_rename()
      
        
          | int evil_rename | ( | const char * | src, | 
        
          |  |  | const char * | dst | 
        
          |  | ) |  |  | 
      
 
Emulate the rename() function on Windows. 
- Parameters
- 
  
    | src | The old pathname. |  | dst | The new pathname. |  
 
- Returns
- 0 on success, -1 otherwise.
This function emulates the POSIX rename() function on Windows. The difference with the POSIX function is that the rename() function on windows fails if the destination exists.
- Since
- 1.8 
 
 
◆ evil_mkdir()
      
        
          | int evil_mkdir | ( | const char * | dirname, | 
        
          |  |  | mode_t | mode | 
        
          |  | ) |  |  | 
      
 
Wrap the _mkdir() function on Windows. 
- Parameters
- 
  
    | [in] | dirname | The new dir name. |  | [in] | mode | Unused. |  
 
- Returns
- 0 on success, -1 otherwise.
This function wraps the _mkdir() function.
- Since
- 1.15