Lines Matching defs:cp
314 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) {
318 if ((n = dn_expand(msg, msg + len, cp, name, sizeof name)) < 0)
324 return (cp + n);
328 p_cdname(const u_char *cp, const u_char *msg, FILE *file) {
329 return (p_cdnname(cp, msg, PACKETSZ, file));
336 p_fqnname(cp, msg, msglen, name, namelen)
337 const u_char *cp, *msg;
344 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0)
353 return (cp + n);
359 p_fqname(const u_char *cp, const u_char *msg, FILE *file) {
363 n = p_fqnname(cp, msg, MAXCDNAME, name, sizeof name);
728 const char *cp;
732 cp = *strptr;
734 while (isdigit((unsigned char)*cp))
735 mval = mval * 10 + (*cp++ - '0');
737 if (*cp == '.') { /* centimeters */
738 cp++;
739 if (isdigit((unsigned char)*cp)) {
740 cmval = (*cp++ - '0') * 10;
741 if (isdigit((unsigned char)*cp)) {
742 cmval += (*cp++ - '0');
758 *strptr = cp;
766 const char *cp;
770 cp = *latlonstrptr;
772 while (isdigit((unsigned char)*cp))
773 deg = deg * 10 + (*cp++ - '0');
775 while (isspace((unsigned char)*cp))
776 cp++;
778 if (!(isdigit((unsigned char)*cp)))
781 while (isdigit((unsigned char)*cp))
782 min = min * 10 + (*cp++ - '0');
784 while (isspace((unsigned char)*cp))
785 cp++;
787 if (!(isdigit((unsigned char)*cp)))
790 while (isdigit((unsigned char)*cp))
791 secs = secs * 10 + (*cp++ - '0');
793 if (*cp == '.') { /* decimal seconds */
794 cp++;
795 if (isdigit((unsigned char)*cp)) {
796 secsfrac = (*cp++ - '0') * 100;
797 if (isdigit((unsigned char)*cp)) {
798 secsfrac += (*cp++ - '0') * 10;
799 if (isdigit((unsigned char)*cp)) {
800 secsfrac += (*cp++ - '0');
806 while (!isspace((unsigned char)*cp)) /* if any trailing garbage */
807 cp++;
809 while (isspace((unsigned char)*cp))
810 cp++;
813 switch (*cp) {
831 switch (*cp) {
845 cp++; /* skip the hemisphere */
847 while (!isspace((unsigned char)*cp)) /* if any trailing garbage */
848 cp++;
850 while (isspace((unsigned char)*cp)) /* move to next field */
851 cp++;
853 *latlonstrptr = cp;
865 const char *cp, *maxcp;
876 cp = ascii;
877 maxcp = cp + strlen(ascii);
879 lltemp1 = latlon2ul(&cp, &which1);
881 lltemp2 = latlon2ul(&cp, &which2);
900 if (*cp == '-') {
902 cp++;
905 if (*cp == '+')
906 cp++;
908 while (isdigit((unsigned char)*cp))
909 altmeters = altmeters * 10 + (*cp++ - '0');
911 if (*cp == '.') { /* decimal meters */
912 cp++;
913 if (isdigit((unsigned char)*cp)) {
914 altfrac = (*cp++ - '0') * 10;
915 if (isdigit((unsigned char)*cp)) {
916 altfrac += (*cp++ - '0');
923 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */
924 cp++;
926 while (isspace((unsigned char)*cp) && (cp < maxcp))
927 cp++;
929 if (cp >= maxcp)
932 siz = precsize_aton(&cp);
934 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */
935 cp++;
937 while (isspace((unsigned char)*cp) && (cp < maxcp))
938 cp++;
940 if (cp >= maxcp)
943 hp = precsize_aton(&cp);
945 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */
946 cp++;
948 while (isspace((unsigned char)*cp) && (cp < maxcp))
949 cp++;
951 if (cp >= maxcp)
954 vp = precsize_aton(&cp);
979 const u_char *cp = binary;
995 versionval = *cp++;
1005 sizeval = *cp++;
1007 hpval = *cp++;
1008 vpval = *cp++;
1010 GETLONG(templ, cp);
1013 GETLONG(templ, cp);
1016 GETLONG(templ, cp);