/* Get MSN-string from char-pointer, set pointer to end of number  */
static void isdn_tty_get_msnstr(char *n, char **p)
/* Get MSN-string from char-pointer, set pointer to end of number  */
static void isdn_tty_get_msnstr(char *n, char **p)
{
	int limit = ISDN_MSNLEN - 1;
	while (((*p[0] >= '0' && *p[0] <= '9') ||
		(*p[0] == ',') || (*p[0] == ':')) &&
		(limit--))
		*n++ = *p[0]++;
	*n = '\0';
}