extern "C" void
cygwin_posix_to_win32_path_list
(const char *posix, char *win32);Given a POSIX path-style string (i.e. /foo:/bar) convert it to the equivalent Win32 path-style string (i.e. d:\;e:\bar). win32 must point to a sufficiently large buffer.
Example 2-1. Example use of cygwin_posix_to_win32_path_list
char *_epath; char *_win32epath; _epath = _win32epath = getenv (NAME); /* If we have a POSIX path list, convert to win32 path list */ if (_epath != NULL && *_epath != 0 && cygwin_posix_path_list_p (_epath)) { _win32epath = (char *) xmalloc (cygwin_posix_to_win32_path_list_buf_size (_epath)); cygwin_posix_to_win32_path_list (_epath, _win32epath); } |