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