#include <arpa/inet.h>#include <sys/types.h>#include <netatalk/at.h>#include <atalk/util.h>#include <ctype.h>Functions | |
| int | atalk_aton (char *cp, struct at_addr *addr) |
| Check whether "cp" is a valid ascii representation of an AppleTalk address and convert to a binary address. | |
| int atalk_aton | ( | char * | cp, |
| struct at_addr * | addr ) |
Check whether "cp" is a valid ascii representation of an AppleTalk address and convert to a binary address.
Examples of accepted forms are (in decimal, net of 4321, node of 65):
If hex is used, and the first digit is one of A-F, the leading 0x is redundant. Returns 1 if the address is valid, 0 if not.
Unlike Internet addresses, AppleTalk addresses can have leading 0's. This means that we can't support octal addressing.