Command Prompt for Windows

tounix, _wtounix, _ttounix

char *tounix(char *cmd);
wchar_t *_wtounix(wchar_t *cmd);
TCHAR *_ttounix(TCHAR *cmd);

Convert a DOS command line to a Unix command line, when Unix mode is enabled.

Parameter Description
cmd Address of a NULL terminated character string containing a DOS command line.


The address of a NULL terminated string containing the Unix command line, when Unix mode is enabled, otherwise, the DOS command line is returned.


Command lines are stored in a static buffer and is over-written each time this function is called.

This function is also used to convert DOS paths to Unix paths, suitable for displaying.

See Also

isunix, todos