extern c on ptrhash