Convert character string to address family.
- name Name of address family.
Converts the provided character string specifying an address family to the corresponding numeric value.
- Address family as number or
Definition at line 894 of file addr.c.
char fam = __str2type(name, afs, ARRAY_SIZE(afs));
return fam >= 0 ? fam : AF_UNSPEC;