LOC_DATABASE_GET_AS(3)
π NAME π
loc_database_get_as β bestie, this is the one that fetches an AS out of the database π
β¨ SYNOPSIS β¨
#include <libloc/database.h>
int loc_database_get_as(struct loc_database* db, struct loc_as** as,
uint32_t number);
π¦ DESCRIPTION π¦
okay so picture this: you've got a database, right? and you want one specific Autonomous System out of it. That's literally what this function does, no cap π
It retrieves an Autonomous System with the matching number from the database and stores it in as.
Like, it goes in, finds the AS that matches, and drops it into as for you. Main character energy honestly π
πΈ RETURN VALUE πΈ
On success, zero is returned π (slay).
Otherwise non-zero is being returned and errno is set accordingly β so if things go sideways, check errno for the tea π
π SEE ALSO π
libloc(3)β go look at the big one, iykyk
π AUTHORS π
Michael Tremer π
fr fr that's the whole page. go forth and fetch your ASes responsibly π«Ά
this has been LOC_DATABASE_GET_AS(3), section 3 of the libloc manual β mwah, catch you in the next one bestie πβ¨
π¦ where this page comes from
- ubuntu stonking: libloc-dev 0.9.19-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms