i have these procedure
#include using namespace std; int parent(int i ){ return i/2; } int left(int i ){ return 2*i; } int right(i
Here is the version I wrote, you can take a look.
http://code.google.com/p/clibutils/source/browse/src/c_heap.c