ldns_get_rr_list_hosts_frm_fp_l3
Parse /etc/hosts file
Usage
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
ldns_rr_list* ldns_get_rr_list_hosts_frm_file(char *filename);
ldns_rr_list* ldns_get_rr_list_hosts_frm_fp(FILE *fp);
ldns_rr_list* ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr);
Overview
ldns_get_rr_list_hosts_frm_file() wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there .br filename: the filename to use (NULL for /etc/hosts) .br Returns ldns_rr_list * with the names
ldns_get_rr_list_hosts_frm_fp() wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there .br fp: the file pointer to use .br Returns ldns_rr_list * with the names
ldns_get_rr_list_hosts_frm_fp_l() wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there .br fp: the file pointer to use .br line_nr: pointer to an integer containing the current line number (for debugging purposes) .br Returns ldns_rr_list * with the names
Remarks
This manpage was automatically generated from the ldns source code.
Releases
10 releases since Debian 5.0 (Lenny); the text changed 4 times.