---
name: "loc_database_count_as"
section: "3"
platform: "linux"
package: "libloc"
version: "0.9.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/loc_database_count_as"
---

# loc\_database\_count\_as(3)

Return the number of ASes in the database

## NAME

loc\_database\_count\_as - Return the number of ASes in the database

## SYNOPSIS

```
#include <libloc/database.h>
```

size\_t loc\_database\_count\_as(struct loc\_database\* db);

## DESCRIPTION

Returns the total number of ASes in the database.

## SEE ALSO

[**libloc**(3)](/libloc/3.md)

## AUTHORS

Michael Tremer
