comp.unix.programmer

Checking if an integer is valid address


Can I use something like

        msync(pageaddress(integer), 1, 0)==0 || errno!=ENOMEM

to determine if integer is a valid address?

-- 
Celle est une langue.     |   With the nutty taste of wild hickory nuts.
C'est francais           /|\              I'm whoever you want me to be.
et tres, tres sexuel.    \|/         Annoying Usenet one post at a time.
- China Azul              |            At least I can stay in character.



Written by China Blue Corn Chips 10/10/2011 20.00.31
Check some pics on this site!
23/05/2012 22.25.06