'\" t .\" Title: loc_database_get_as .\" Author: [see the "Authors" section] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 12/02/2022 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "LOC_DATABASE_GET_AS" "3" "" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" loc_database_get_as \- Fetch an AS from the database .SH "SYNOPSIS" .sp .nf #include .fi .sp int loc_database_get_as(struct loc_database* db, struct loc_as** as, uint32_t number); .SH "DESCRIPTION" .sp This function retrieves an Autonomous System with the matching \fInumber\fR from the database and stores it in \fIas\fR\&. .SH "RETURN VALUE" .sp On success, zero is returned\&. Otherwise non\-zero is being returned and \fIerrno\fR is set accordingly\&. .SH "SEE ALSO" .sp \fBlibloc\fR(3) .SH "AUTHORS" .sp Michael Tremer