tail head cat sleep
QR code linking to this page

Manual Pages  — ELF_HASH

NAME

elf_hash – compute a hash value for a string

CONTENTS

LIBRARY

ELF Access Library (libelf, -lelf)

SYNOPSIS

#include <libelf.h>

unsigned long
elf_hash(const char *name);

DESCRIPTION

Function elf_hash() computes a portable hash value for the null terminated string pointed to by argument name.

The hash value returned is will be identical across machines of different architectures. This allows hash tables to be built on one machine and correctly used on another of a different architecture. The hash value returned is also guaranteed not to be the bit pattern of all ones (~0UL).

IMPLEMENTATION NOTES

The library internally uses unsigned 32 bit arithmetic to compute the hash value.

SEE ALSO

elf(3), gelf(3)

ELF_HASH (3) August 15, 2006

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Today, the Unix equivalent of a power drill would have 20 dials and switches, come with a nonstandard plug, require the user to hand-wind the motor coil, and not accept 3/8" or 7/8" drill bits (though this would be documented in the BUGS section of its instruction manual).
— The Unix Haters' handbook