Logo Search packages:      
Sourcecode: libnl version File versions  Download package

char nl_str2af ( const char *  name  ) 

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 AF_UNSPEC.

Definition at line 894 of file addr.c.

      char fam = __str2type(name, afs, ARRAY_SIZE(afs));
      return fam >= 0 ? fam : AF_UNSPEC;

Generated by  Doxygen 1.6.0   Back to index