mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 04:17:02 -05:00
Convert Windows slash to C slash in the disk mount point.
This commit is contained in:
parent
ef1b061022
commit
cfbe9343ae
3 changed files with 25 additions and 1 deletions
7
util.h
7
util.h
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue