/* Get integer from char-pointer, set pointer to end of number  */
int isdn_getnum(char **p)
/* Get integer from char-pointer, set pointer to end of number  */
int isdn_getnum(char **p)
{
	int v = -1;
	while (*p[0] >= '0' && *p[0] <= '9')
		v = ((v < 0) ? 0 : (v * 10)) + (int) ((*p[0]++) - '0');
	return v;
}