(Input) The number of addresses in the list. The maximum number of addresses is MAXNS.
Authorities
No authorization is required.
Return Value
None.
Error Conditions
When the res_setservers() function fails,
errno will be set to one of the following:
[EFAULT]
The system detected a pointer that was invalid
while attempting to access an input pointer.
[EINVAL]
res appears to have been
previously initialized but the reserved field is not set to zeros.
Usage Notes
res_setservers() replaces the entire list of existing name server addresses
with the new list. If the new list has fewer than MAXNS entries, the
remaining entries will be set to null.
If more than MAXNS entries are used, only MAXNS entries will
be set and extra entries will be ignored.