Ejemplo n.º 1
0
/*
 * Print the current options.
 */
void
fp_resstat(const res_state statp, FILE *file) {
	u_long mask;

	fprintf(file, ";; res options:");
	for (mask = 1;  mask != 0U;  mask <<= 1)
		if (statp->options & mask)
			fprintf(file, " %s", p_option(mask));
	putc('\n', file);
}
Ejemplo n.º 2
0
/*
 * Print the current options.
 */
void
fp_resstat(struct __res_state *statp, FILE *file) {
    u_long mask;

    fprintf(file, ";; res options:");
    if (!statp)
        statp = &_res;
    for (mask = 1;  mask != 0;  mask <<= 1)
        if (statp->options & mask)
            fprintf(file, " %s", p_option(mask));
    putc('\n', file);
}