[misc] add Ctrl-SELECT option to provide additional content

* For now only .zip archives are supported
This commit is contained in:
Pete Batard 2020-06-10 21:25:33 +01:00
parent 71ede6d9a0
commit e554d2b4e0
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
7 changed files with 63 additions and 16 deletions

View file

@ -1052,6 +1052,17 @@ static __inline int _accessU(const char* path, int mode)
return ret;
}
static __inline const char* _filenameU(const char* path)
{
int i;
if (path == NULL)
return NULL;
for (i = strlen(path) - 1; i >= 0; i--)
if ((path[i] == '/') || (path[i] == '\\'))
return &path[i + 1];
return path;
}
// returned UTF-8 string must be freed
static __inline char* getenvU(const char* varname)
{