loc_database_get_country(3)

Fetch country information from the database

Section 3 libloc-dev bookworm source

Description

LOC_DATABASE_GET_COU

NAME

loc_database_get_country - Fetch country information from the database

SYNOPSIS

#include <libloc/database.h>

int loc_database_get_country(struct loc_database* db, struct loc_country** country, const char* code);

DESCRIPTION

This function fetches information about the country with the matching code.

RETURN VALUE

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

SEE ALSO

libloc(3)

AUTHORS

Michael Tremer