'\" t .\" Title: loc_database_get_country .\" Author: [see the "Authors" section] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 02/01/2024 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "LOC_DATABASE_GET_COU" "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_country \- Fetch country information from the database .SH "SYNOPSIS" .sp #include .sp int loc_database_get_country(struct loc_database* db, struct loc_country** country, const char* code); .SH "DESCRIPTION" .sp This function fetches information about the country with the matching \fIcode\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