Lines Matching refs:cp
313 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) {
317 if ((n = dn_expand(msg, msg + len, cp, name, sizeof name)) < 0)
323 return (cp + n);
327 p_cdname(const u_char *cp, const u_char *msg, FILE *file) {
328 return (p_cdnname(cp, msg, PACKETSZ, file));
335 p_fqnname(cp, msg, msglen, name, namelen)
336 const u_char *cp, *msg;
343 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0)
352 return (cp + n);
358 p_fqname(const u_char *cp, const u_char *msg, FILE *file) {
362 n = p_fqnname(cp, msg, MAXCDNAME, name, sizeof name);
727 const char *cp;
731 cp = *strptr;
733 while (isdigit((unsigned char)*cp))
734 mval = mval * 10 + (*cp++ - '0');
736 if (*cp == '.') { /* centimeters */
737 cp++;
738 if (isdigit((unsigned char)*cp)) {
739 cmval = (*cp++ - '0') * 10;
740 if (isdigit((unsigned char)*cp)) {
741 cmval += (*cp++ - '0');
757 *strptr = cp;
765 const char *cp;
769 cp = *latlonstrptr;
771 while (isdigit((unsigned char)*cp))
772 deg = deg * 10 + (*cp++ - '0');
774 while (isspace((unsigned char)*cp))
775 cp++;
777 if (!(isdigit((unsigned char)*cp)))
780 while (isdigit((unsigned char)*cp))
781 min = min * 10 + (*cp++ - '0');
783 while (isspace((unsigned char)*cp))
784 cp++;
786 if (!(isdigit((unsigned char)*cp)))
789 while (isdigit((unsigned char)*cp))
790 secs = secs * 10 + (*cp++ - '0');
792 if (*cp == '.') { /* decimal seconds */
793 cp++;
794 if (isdigit((unsigned char)*cp)) {
795 secsfrac = (*cp++ - '0') * 100;
796 if (isdigit((unsigned char)*cp)) {
797 secsfrac += (*cp++ - '0') * 10;
798 if (isdigit((unsigned char)*cp)) {
799 secsfrac += (*cp++ - '0');
805 while (!isspace((unsigned char)*cp)) /* if any trailing garbage */
806 cp++;
808 while (isspace((unsigned char)*cp))
809 cp++;
812 switch (*cp) {
830 switch (*cp) {
844 cp++; /* skip the hemisphere */
846 while (!isspace((unsigned char)*cp)) /* if any trailing garbage */
847 cp++;
849 while (isspace((unsigned char)*cp)) /* move to next field */
850 cp++;
852 *latlonstrptr = cp;
864 const char *cp, *maxcp;
875 cp = ascii;
876 maxcp = cp + strlen(ascii);
878 lltemp1 = latlon2ul(&cp, &which1);
880 lltemp2 = latlon2ul(&cp, &which2);
899 if (*cp == '-') {
901 cp++;
904 if (*cp == '+')
905 cp++;
907 while (isdigit((unsigned char)*cp))
908 altmeters = altmeters * 10 + (*cp++ - '0');
910 if (*cp == '.') { /* decimal meters */
911 cp++;
912 if (isdigit((unsigned char)*cp)) {
913 altfrac = (*cp++ - '0') * 10;
914 if (isdigit((unsigned char)*cp)) {
915 altfrac += (*cp++ - '0');
922 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */
923 cp++;
925 while (isspace((unsigned char)*cp) && (cp < maxcp))
926 cp++;
928 if (cp >= maxcp)
931 siz = precsize_aton(&cp);
933 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */
934 cp++;
936 while (isspace((unsigned char)*cp) && (cp < maxcp))
937 cp++;
939 if (cp >= maxcp)
942 hp = precsize_aton(&cp);
944 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */
945 cp++;
947 while (isspace((unsigned char)*cp) && (cp < maxcp))
948 cp++;
950 if (cp >= maxcp)
953 vp = precsize_aton(&cp);
978 const u_char *cp = binary;
994 versionval = *cp++;
1004 sizeval = *cp++;
1006 hpval = *cp++;
1007 vpval = *cp++;
1009 GETLONG(templ, cp);
1012 GETLONG(templ, cp);
1015 GETLONG(templ, cp);