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

# libloc(3)

A tool to query the IPFire Location database

## NAME

libloc - A tool to query the IPFire Location database

## SYNOPSIS

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

pkg-config --cflags --libs libloc

## DESCRIPTION

libloc is a lightweight library which can be used to query the IPFire Location database.

See

• [**loc\_new**(3)](/loc_new/3.md)

• [**loc\_get\_log\_priority**(3)](/loc_get_log_priority/3.md)

• [**loc\_set\_log\_priority**(3)](/loc_set_log_priority/3.md)

• **loc\_get\_log\_fn**(3)

• [**loc\_database\_count\_as**(3)](/loc_database_count_as/3.md)

• [**loc\_database\_get\_as**(3)](/loc_database_get_as/3.md)

• [**loc\_database\_get\_country**(3)](/loc_database_get_country/3.md)

• [**loc\_database\_lookup**(3)](/loc_database_lookup/3.md)

• [**loc\_database\_new**(3)](/loc_database_new/3.md)

for more information about the functions available.

## COPYING

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

## SEE ALSO

[**location**(1)](/location/1.md)

## BUG REPORTS

Please report all bugs to the bugtracker at **https://bugzilla.ipfire.org/**; refer to **https://wiki.ipfire.org/devel/bugzilla** for details.

## AUTHORS

Michael Tremer
