• Home
  • Raw
  • Download

Lines Matching refs:cp

178 +        register char *cp;
182 + cp = *strptr;
184 + while (isdigit(*cp))
185 + mval = mval * 10 + (*cp++ - '0');
187 + if (*cp == '.') { /* centimeters */
188 + cp++;
189 + if (isdigit(*cp)) {
190 + cmval = (*cp++ - '0') * 10;
191 + if (isdigit(*cp)) {
192 + cmval += (*cp++ - '0');
208 + *strptr = cp;
218 + register char *cp;
222 + cp = *latlonstrptr;
224 + while (isdigit(*cp))
225 + deg = deg * 10 + (*cp++ - '0');
227 + while (isspace(*cp))
228 + cp++;
230 + if (!(isdigit(*cp)))
233 + while (isdigit(*cp))
234 + min = min * 10 + (*cp++ - '0');
235 + while (isspace(*cp))
236 + cp++;
238 + if (!(isdigit(*cp)))
241 + while (isdigit(*cp))
242 + secs = secs * 10 + (*cp++ - '0');
244 + if (*cp == '.') { /* decimal seconds */
245 + cp++;
246 + if (isdigit(*cp)) {
247 + secsfrac = (*cp++ - '0') * 100;
248 + if (isdigit(*cp)) {
249 + secsfrac += (*cp++ - '0') * 10;
250 + if (isdigit(*cp)) {
251 + secsfrac += (*cp++ - '0');
257 + while (!isspace(*cp)) /* if any trailing garbage */
258 + cp++;
260 + while (isspace(*cp))
261 + cp++;
264 + switch (*cp) {
282 + switch (*cp) {
296 + cp++; /* skip the hemisphere */
298 + while (!isspace(*cp)) /* if any trailing garbage */
299 + cp++;
301 + while (isspace(*cp)) /* move to next field */
302 + cp++;
304 + *latlonstrptr = cp;
314 + const char *cp, *maxcp;
325 + cp = ascii;
326 + maxcp = cp + strlen(ascii);
328 + lltemp1 = latlon2ul(&cp, &which1);
329 + lltemp2 = latlon2ul(&cp, &which2);
348 + if (*cp == '-') {
350 + cp++;
353 + if (*cp == '+')
354 + cp++;
356 + while (isdigit(*cp))
357 + altmeters = altmeters * 10 + (*cp++ - '0');
359 + if (*cp == '.') { /* decimal meters */
360 + cp++;
361 + if (isdigit(*cp)) {
362 + altfrac = (*cp++ - '0') * 10;
363 + if (isdigit(*cp)) {
364 + altfrac += (*cp++ - '0');
371 + while (!isspace(*cp) && (cp < maxcp))
373 + cp++;
375 + while (isspace(*cp) && (cp < maxcp))
376 + cp++;
377 + if (cp >= maxcp)
380 + siz = precsize_aton(&cp);
382 + while (!isspace(*cp) && (cp < maxcp))/*if trailing garbage or m*/
383 + cp++;
385 + while (isspace(*cp) && (cp < maxcp))
386 + cp++;
388 + if (cp >= maxcp)
391 + hp = precsize_aton(&cp);
393 + while (!isspace(*cp) && (cp < maxcp))/*if trailing garbage or m*/
394 + cp++;
396 + while (isspace(*cp) && (cp < maxcp))
397 + cp++;
399 + if (cp >= maxcp)
402 + vp = precsize_aton(&cp);
425 + register char *cp;
443 + cp = ascii;
445 + cp = tmpbuf;
451 + sprintf(cp,"; error: unknown LOC RR version");
452 + return (cp);
512 + sprintf(cp,
521 + return (cp);