If anyone needs one in C, they can just rip the function out of
http://pulua.hcc.hawaii.edu/files/mapper.c
...I've read it's one of the best, and it appears to work nicely.
-- Kevin Hughes kevinh@pulua.hcc.hawaii.edu