Another version of parksies function:
I'm pretty sure that left shift is right, but you must try. If it doesn't work correctly, tryPHP Code:// add this include
#include <ctype.h>
// and for debug purposes
#include <assert.h>
BOOL is_drive(char letter, unsigned long drives) {
assert(isalpha(letter));
return drives & (1 << (toupper(letter) - 'A'));
}
0x80000000 >> (toupper(letter) - 'A')
or stick to parksies way.




CornedBee
Reply With Quote