FreeCalypso > hg > freecalypso-tools
view uptools/libcoding/alpha_addr.c @ 449:b1864e3f8fb4
CHANGES & doc/User-phone-tools: documented AT-over-RVT long strings
extension and the current broken state found in Mot C139 testing
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 16 Jan 2019 01:21:29 +0000 |
parents | 74d5e95ee84a |
children |
line wrap: on
line source
/* * This library module contains some bits that help working with * alphabetic addresses. */ #include <sys/types.h> u_char alpha_septets_to_digits[12] = {0, 2, 4, 6, 7, 9, 11, 13, 14, 16, 18, 20}; alpha_addr_valid(ndigits, sepp) unsigned ndigits, *sepp; { unsigned n; for (n = 1; n <= 11; n++) if (alpha_septets_to_digits[n] == ndigits) { *sepp = n; return(1); } return(0); }