This is more of a general programming question than a C specific question, but can anyone explain to me how exactly the binary buddy system works?
I.e., Two memory addresses: how can I tell if they are buddies or not given a size I am looking for? (128K, 256K, etc).
I know I need to use some sort of bit masking but I am unsure how to go about it.