logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

loc_database_get_as - Fetch an AS from the database

Authors

       Michael Tremer

                                                                                          LOC_DATABASE_GET_AS(3)

Description

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

Name

       loc_database_get_as - Fetch an AS from the database

Return Value

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

See Also

libloc(3)

Synopsis

       #include <libloc/database.h>

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

See Also