---
name: "cdb_firstkey"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdb_firstkey"
---

# cdb\_firstkey(3)

find first physical record in constant database

## NAME

cdb\_firstkey - find first physical record in constant database

## SYNTAX

**#include \<libowfat/cdb.h\>**\
 **#include \<libowfat/uint32.h\>**

int cdb\_firstkey(struct cdb \**c*,uint32 \**kpos*);

## DESCRIPTION

**cdb\_firstkey** finds the physically first record in the constant database.

You can use cdb\_datapos or cdb\_keypos to get *position* and cdb\_datalen and cdb\_keylen to get *len*.

## SEE ALSO

[cdb\_nextkey(3)](/cdb_nextkey/3.md), [cdb\_successor(3)](/cdb_successor/3.md)
