---
name: "cdb_hash"
section: "3"
platform: "linux"
package: "freecdb"
version: "0.62"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/cdb_hash"
---

# cdb\_hash(3)

## NAME

cdb\_hash -- the hash function used by cdb

## SYNOPSIS

**#include \<freecdb.h\>**

uint32 **cdb\_hash**(unsigned char \**buf*, unsigned int *len*);

## DESCRIPTION

Return a hash for the first *len* bytes of *buf*.

## RETURN VALUE

The hash.

## SEE ALSO

[cdb\_seek(3)](/cdb_seek/3.md)
