ntpath2posix() - convert Win32-style pathname to POSIX format
#include <interix/interix.h>
ntpath2posix(char *source, char *dest, int flags)
These routines are obsolete; they are not aware of the INTERIX single-rooted filesystem or of symbolic links. New applications should use the unixpath2win(3) and winpath2unix(3) APIs.
The ntpath2posix(3) routine converts a Win32-style pathname (such as c:\SFU) into a POSIX-style pathname (such as /dev/fs/C/SFU). The drive specifier is converted to upper case, prefixed by /, and all backslashes are converted to slashes.
The routine converts the Win32 pathname pointed to by source and stores it in dest. Other than that, the routine does no significant error checking; source strings such as :\users become :/users.
If dest is NULL, the path is converted in place and the result is stored in source. Remember that a fully-qualified POSIX-style pathname will always be one character longer than the equivalent Win32-style pathname.
Unlike _ntpath2posix(3), its default behavior is to return the appropriately case sensitive pathname. To disable this, pass the value PATH_IGNCASE (defined in <interix/interix.h>) to argument flags.
The routine does not use the current working directories on other drives, and interprets all pathnames with drive specifiers as rooted pathnames. For example, if the current working directory on drive D: is D:\WIN32APP then the Win32 pathname D:WINAPP normally refers to the directory D:\WIN32APP\WINAPP The ntpath2posix(3) routine converts D:WINAPP into /dev/fs/D/WINAPP
The ntpath2posix(3) routine returns a pointer to the converted pathname.
chgpath(1)