Convert Windows slash to C slash in the disk mount point.

This commit is contained in:
Andrea Mazzoleni 2011-05-02 20:32:54 +02:00
parent ef1b061022
commit cfbe9343ae
3 changed files with 25 additions and 1 deletions

7
util.h
View file

@ -82,6 +82,13 @@ char* strdechex(void* void_data, unsigned data_len, char* str);
*/
void pathcpy(char* str, size_t size, const char* src);
/**
* Imports a path limiting the size.
* In Windows, the last slash, if present, is converted to the C standard.
* Aborts if too long.
*/
void pathimport(char* str, size_t size, const char* src);
/**
* Prints a path.
* Aborts if too long.