measure.c
/* Attempt to an angular range for source specification. The value maxdef
 * specifies the default maximum value for the angle. */
Attempt to an angular range for source specification. The value maxdef
specifies the default maximum value for the angle.
Attempt to an angular range for source specification . The value maxdef specifies the default maximum value for the angle .
static int measrange (char *str, real *min, real *max, real maxdef) {
	char **ap, *rn[3];
	int nr = 0;
	*min = 0.0;
	*max = maxdef;
	splitstr (rn, str, ":", 3);
	if (rn[0] && strlen(rn[0])) nr = strtol (rn[0], NULL, 0);
	if (rn[1] && strlen(rn[1])) *min = strtod (rn[1], NULL);
	if (rn[2] && strlen(rn[2])) *max = strtod (rn[2], NULL);
	return nr;
}
static int measrange ( char * str , real * min , real * max , real maxdef ) { char * * ap , * rn [ 3 ] ; int nr = 0 ; * min = 0.0 ; * max = maxdef ; splitstr ( rn , str , " " , 3 ) ; if ( rn [ 0 ] && strlen ( rn [ 0 ] ) ) nr = strtol ( rn [ 0 ] , NULL , 0 ) ; if ( rn [ 1 ] && strlen ( rn [ 1 ] ) ) * min = strtod ( rn [ 1 ] , NULL ) ; if ( rn [ 2 ] && strlen ( rn [ 2 ] ) ) * max = strtod ( rn [ 2 ] , NULL ) ; return nr ; }
Attempt to an angular range for source specification.
Attempt to an angular range for source specification .
/* Set default angular limits values first. */ /* Split the measurement range into an array. */ /* Grab the number of angles in the range. */ /* Grab the minimum angle, if specified. */ /* Grab the maximum angle, if specified. */