Utility library w_put_bkgr() Galloc()
Programming guideline of WinDom

conv_path()

NAME

conv_path - convert a file name between TOS and MiNT formats.

PROTOTYPAGE

char *conv_path( char *p)

PARAMETERS

p:
buffer containing the path to convert,

retour:
address of p.

DESCRIPTION

conv_path() converts a TOS filename o pathname in MiNT (Unix) format and inversly. Absolute or relative path are converted. Concerning the TOS convertion (MiNT to TOS), the root path (/ in Unix) is converted to U:\ except disk paths (/x/) which are converted into x:\ format.

EXAMPLES

"folder\dum.cnf" is converted in "folder/dum.cnf"
"/c/multitos/mint.cnf" is converted in "c:\multitos\mint.cnf"
"/etc/passwd" is converted to U:\etc\passwd
"/u/etc/passwd" is converted in "u:\etc\passwd"
"/etc/passwd" is converted in "U:\etc\passwd"