Lines Matching refs:cp
202 const u_char *cp = ns_rr_rdata(rr); in do_section() local
205 GETSHORT(optcode, cp); in do_section()
206 GETSHORT(optlen, cp); in do_section()
216 cp[i]); in do_section()
220 isprint(cp[i])? in do_section()
221 cp[i] : '.'); in do_section()
233 cp[i]); in do_section()
237 isprint(cp[i]) ? in do_section()
238 cp[i] : '.'); in do_section()
351 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument
355 if ((n = dn_expand(msg, msg + len, cp, name, (int)sizeof name)) < 0) in p_cdnname()
361 return (cp + n); in p_cdnname()
365 p_cdname(const u_char *cp, const u_char *msg, FILE *file) { in p_cdname() argument
366 return (p_cdnname(cp, msg, PACKETSZ, file)); in p_cdname()
373 p_fqnname(const u_char *cp, const u_char *msg, int msglen, char *name, in p_fqnname() argument
379 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0) in p_fqnname()
388 return (cp + n); in p_fqnname()
394 p_fqname(const u_char *cp, const u_char *msg, FILE *file) { in p_fqname() argument
398 n = p_fqnname(cp, msg, MAXCDNAME, name, (int)sizeof name); in p_fqname()
781 const char *cp; in precsize_aton() local
785 cp = *strptr; in precsize_aton()
787 while (isdigit((unsigned char)*cp)) in precsize_aton()
788 mval = mval * 10 + (*cp++ - '0'); in precsize_aton()
790 if (*cp == '.') { /* centimeters */ in precsize_aton()
791 cp++; in precsize_aton()
792 if (isdigit((unsigned char)*cp)) { in precsize_aton()
793 cmval = (*cp++ - '0') * 10; in precsize_aton()
794 if (isdigit((unsigned char)*cp)) { in precsize_aton()
795 cmval += (*cp++ - '0'); in precsize_aton()
811 *strptr = cp; in precsize_aton()
819 const char *cp; in latlon2ul() local
823 cp = *latlonstrptr; in latlon2ul()
825 while (isdigit((unsigned char)*cp)) in latlon2ul()
826 deg = deg * 10 + (*cp++ - '0'); in latlon2ul()
828 while (isspace((unsigned char)*cp)) in latlon2ul()
829 cp++; in latlon2ul()
831 if (!(isdigit((unsigned char)*cp))) in latlon2ul()
834 while (isdigit((unsigned char)*cp)) in latlon2ul()
835 min = min * 10 + (*cp++ - '0'); in latlon2ul()
837 while (isspace((unsigned char)*cp)) in latlon2ul()
838 cp++; in latlon2ul()
840 if (!(isdigit((unsigned char)*cp))) in latlon2ul()
843 while (isdigit((unsigned char)*cp)) in latlon2ul()
844 secs = secs * 10 + (*cp++ - '0'); in latlon2ul()
846 if (*cp == '.') { /* decimal seconds */ in latlon2ul()
847 cp++; in latlon2ul()
848 if (isdigit((unsigned char)*cp)) { in latlon2ul()
849 secsfrac = (*cp++ - '0') * 100; in latlon2ul()
850 if (isdigit((unsigned char)*cp)) { in latlon2ul()
851 secsfrac += (*cp++ - '0') * 10; in latlon2ul()
852 if (isdigit((unsigned char)*cp)) { in latlon2ul()
853 secsfrac += (*cp++ - '0'); in latlon2ul()
859 while (!isspace((unsigned char)*cp)) /* if any trailing garbage */ in latlon2ul()
860 cp++; in latlon2ul()
862 while (isspace((unsigned char)*cp)) in latlon2ul()
863 cp++; in latlon2ul()
866 switch (*cp) { in latlon2ul()
884 switch (*cp) { in latlon2ul()
898 cp++; /* skip the hemisphere */ in latlon2ul()
900 while (!isspace((unsigned char)*cp)) /* if any trailing garbage */ in latlon2ul()
901 cp++; in latlon2ul()
903 while (isspace((unsigned char)*cp)) /* move to next field */ in latlon2ul()
904 cp++; in latlon2ul()
906 *latlonstrptr = cp; in latlon2ul()
916 const char *cp, *maxcp; in loc_aton() local
927 cp = ascii; in loc_aton()
928 maxcp = cp + strlen(ascii); in loc_aton()
930 lltemp1 = latlon2ul(&cp, &which1); in loc_aton()
932 lltemp2 = latlon2ul(&cp, &which2); in loc_aton()
951 if (*cp == '-') { in loc_aton()
953 cp++; in loc_aton()
956 if (*cp == '+') in loc_aton()
957 cp++; in loc_aton()
959 while (isdigit((unsigned char)*cp)) in loc_aton()
960 altmeters = altmeters * 10 + (*cp++ - '0'); in loc_aton()
962 if (*cp == '.') { /* decimal meters */ in loc_aton()
963 cp++; in loc_aton()
964 if (isdigit((unsigned char)*cp)) { in loc_aton()
965 altfrac = (*cp++ - '0') * 10; in loc_aton()
966 if (isdigit((unsigned char)*cp)) { in loc_aton()
967 altfrac += (*cp++ - '0'); in loc_aton()
974 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */ in loc_aton()
975 cp++; in loc_aton()
977 while (isspace((unsigned char)*cp) && (cp < maxcp)) in loc_aton()
978 cp++; in loc_aton()
980 if (cp >= maxcp) in loc_aton()
983 siz = precsize_aton(&cp); in loc_aton()
985 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */ in loc_aton()
986 cp++; in loc_aton()
988 while (isspace((unsigned char)*cp) && (cp < maxcp)) in loc_aton()
989 cp++; in loc_aton()
991 if (cp >= maxcp) in loc_aton()
994 hp = precsize_aton(&cp); in loc_aton()
996 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */ in loc_aton()
997 cp++; in loc_aton()
999 while (isspace((unsigned char)*cp) && (cp < maxcp)) in loc_aton()
1000 cp++; in loc_aton()
1002 if (cp >= maxcp) in loc_aton()
1005 vp = precsize_aton(&cp); in loc_aton()
1028 const u_char *cp = binary; in loc_ntoa() local
1044 versionval = *cp++; in loc_ntoa()
1054 sizeval = *cp++; in loc_ntoa()
1056 hpval = *cp++; in loc_ntoa()
1057 vpval = *cp++; in loc_ntoa()
1059 GETLONG(templ, cp); in loc_ntoa()
1062 GETLONG(templ, cp); in loc_ntoa()
1065 GETLONG(templ, cp); in loc_ntoa()