Lines Matching refs:cp

221 				const u_char *cp = ns_rr_rdata(rr);
224 GETSHORT(optcode, cp);
225 GETSHORT(optlen, cp);
235 cp[i]);
239 isprint(cp[i])?
240 cp[i] : '.');
252 cp[i]);
256 isprint(cp[i]) ?
257 cp[i] : '.');
370 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) {
374 if ((n = dn_expand(msg, msg + len, cp, name, sizeof name)) < 0)
380 return (cp + n);
384 p_cdname(const u_char *cp, const u_char *msg, FILE *file) {
385 return (p_cdnname(cp, msg, PACKETSZ, file));
393 p_fqnname(cp, msg, msglen, name, namelen)
394 const u_char *cp, *msg;
401 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0)
410 return (cp + n);
416 p_fqname(const u_char *cp, const u_char *msg, FILE *file) {
420 n = p_fqnname(cp, msg, MAXCDNAME, name, sizeof name);
805 const char *cp;
809 cp = *strptr;
811 while (isdigit((unsigned char)*cp))
812 mval = mval * 10 + (*cp++ - '0');
814 if (*cp == '.') { /*%< centimeters */
815 cp++;
816 if (isdigit((unsigned char)*cp)) {
817 cmval = (*cp++ - '0') * 10;
818 if (isdigit((unsigned char)*cp)) {
819 cmval += (*cp++ - '0');
835 *strptr = cp;
843 const char *cp;
847 cp = *latlonstrptr;
849 while (isdigit((unsigned char)*cp))
850 deg = deg * 10 + (*cp++ - '0');
852 while (isspace((unsigned char)*cp))
853 cp++;
855 if (!(isdigit((unsigned char)*cp)))
858 while (isdigit((unsigned char)*cp))
859 min = min * 10 + (*cp++ - '0');
861 while (isspace((unsigned char)*cp))
862 cp++;
864 if (!(isdigit((unsigned char)*cp)))
867 while (isdigit((unsigned char)*cp))
868 secs = secs * 10 + (*cp++ - '0');
870 if (*cp == '.') { /*%< decimal seconds */
871 cp++;
872 if (isdigit((unsigned char)*cp)) {
873 secsfrac = (*cp++ - '0') * 100;
874 if (isdigit((unsigned char)*cp)) {
875 secsfrac += (*cp++ - '0') * 10;
876 if (isdigit((unsigned char)*cp)) {
877 secsfrac += (*cp++ - '0');
883 while (!isspace((unsigned char)*cp)) /*%< if any trailing garbage */
884 cp++;
886 while (isspace((unsigned char)*cp))
887 cp++;
890 switch (*cp) {
908 switch (*cp) {
922 cp++; /*%< skip the hemisphere */
923 while (!isspace((unsigned char)*cp)) /*%< if any trailing garbage */
924 cp++;
926 while (isspace((unsigned char)*cp)) /*%< move to next field */
927 cp++;
929 *latlonstrptr = cp;
942 const char *cp, *maxcp;
953 cp = ascii;
954 maxcp = cp + strlen(ascii);
956 lltemp1 = latlon2ul(&cp, &which1);
958 lltemp2 = latlon2ul(&cp, &which2);
977 if (*cp == '-') {
979 cp++;
982 if (*cp == '+')
983 cp++;
985 while (isdigit((unsigned char)*cp))
986 altmeters = altmeters * 10 + (*cp++ - '0');
988 if (*cp == '.') { /*%< decimal meters */
989 cp++;
990 if (isdigit((unsigned char)*cp)) {
991 altfrac = (*cp++ - '0') * 10;
992 if (isdigit((unsigned char)*cp)) {
993 altfrac += (*cp++ - '0');
1000 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /*%< if trailing garbage or m */
1001 cp++;
1003 while (isspace((unsigned char)*cp) && (cp < maxcp))
1004 cp++;
1006 if (cp >= maxcp)
1009 siz = precsize_aton(&cp);
1011 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /*%< if trailing garbage or m */
1012 cp++;
1014 while (isspace((unsigned char)*cp) && (cp < maxcp))
1015 cp++;
1017 if (cp >= maxcp)
1020 hp = precsize_aton(&cp);
1022 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /*%< if trailing garbage or m */
1023 cp++;
1025 while (isspace((unsigned char)*cp) && (cp < maxcp))
1026 cp++;
1028 if (cp >= maxcp)
1031 vp = precsize_aton(&cp);
1056 const u_char *cp = binary;
1072 versionval = *cp++;
1082 sizeval = *cp++;
1084 hpval = *cp++;
1085 vpval = *cp++;
1087 GETLONG(templ, cp);
1090 GETLONG(templ, cp);
1093 GETLONG(templ, cp);