GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ELF_HASH(3) FreeBSD Library Functions Manual ELF_HASH(3)

elf_hash
compute a hash value for a string

ELF Access Library (libelf, -lelf)

#include <libelf.h>
unsigned long
elf_hash(const char *name);

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).

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

elf(3), gelf(3)
August 15, 2006 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.