function H2I takes handle h returns integer return h return 0 endfunction function I2H takes integer i returns handle return i return null endfunction