[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Getting drive names in XaAES



That means it takes ASCII value of 'a' (0x61) and adds a number to it (ranging from zero to N), i.e. you'll get values of ASCII codes for 'a', 'b', 'c', ... depending on what current drive number is. Then just adds ':' after this character resulting in "a:", "b:" etc strings.

On Tue, Dec 8, 2009 at 10:17 AM, Paul Wratt <paul.wratt@gmail.com> wrote:
Can someone tell me why this happens:
                       *(info->home_path) = drv + 'a';
                       *(info->home_path + 1) = ':';

or
       defdir[0] = d_getdrv() + 'a';
       defdir[1] = ':';


And is it "not restricted to XaAES"

Cheers

Paul





--
MiKRO / Mystic Bytes
http://mikro.atari.org