]> git.ipfire.org Git - location/libloc.git/blob - man/loc_database_get_as.txt
man: Add man pages for all loc_database_* functions
[location/libloc.git] / man / loc_database_get_as.txt
1 = loc_database_get_as(3)
2
3 == Name
4
5 loc_database_get_as - Fetch an AS from the database
6
7 == Synopsis
8 [verse]
9
10 #include <libloc/database.h>
11
12 int loc_database_get_as(struct loc_database{empty}* db, struct loc_as{empty}*{empty}* as,
13 uint32_t number);
14
15 == Description
16
17 This function retrieves an Autonomous System with the matching _number_ from the database
18 and stores it in _as_.
19
20 == Return Value
21
22 On success, zero is returned. Otherwise non-zero is being returned and _errno_ is set
23 accordingly.
24
25 == See Also
26
27 link:libloc[3]
28
29 == Authors
30
31 Michael Tremer