DOKK / manpages / debian 12 / libloc-dev / loc_database_get_as.3.en
LOC_DATABASE_GET_AS(3)   LOC_DATABASE_GET_AS(3)

loc_database_get_as - Fetch an AS from the database

#include <libloc/database.h>

int loc_database_get_as(struct loc_database* db, struct loc_as** as, uint32_t number);

This function retrieves an Autonomous System with the matching number from the database and stores it in as.

On success, zero is returned. Otherwise non-zero is being returned and errno is set accordingly.

libloc(3)

Michael Tremer