Command Prompt for Windows




todos, _wtodos, _ttodos

char *todos(char *cmd);
wchar_t *_wtodos(wchar_t *cmd);
TCHAR *_ttodos(TCHAR *cmd);

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

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

Returns

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

Comments

This function overwrites the cmd parameter.

When Unix mode is not enabled, then the Unix command line is simply copied into the static buffer and is not converted.

This function is also used to convert Unix paths to DOS paths.

See Also

tounix, isunix