FreeBSD/usr.sbin/mountd/mountd.c
/*
 * Parse out the next white space separated field
 */
Parse out the next white space separated field
Parse out the next white space separated field
static void
nextfield(char **cp, char **endcp)
{
	char *p;
	p = *cp;
	while (*p == ' ' || *p == '\t')
		p++;
	if (*p == '\n' || *p == '\0')
		*cp = *endcp = p;
	else {
		*cp = p++;
		while (*p != ' ' && *p != '\t' && *p != '\n' && *p != '\0')
			p++;
		*endcp = p;
	}
}
static void nextfield ( char * * cp , char * * endcp ) { char * p ; p = * cp ; while ( * p == ' ' || * p == ' \t ' ) p ++ ; if ( * p == ' \n ' || * p == ' \0 ' ) * cp = * endcp = p ; else { * cp = p ++ ; while ( * p != ' ' && * p != ' \t ' && * p != ' \n ' && * p != ' \0 ' ) p ++ ; * endcp = p ; } }
Parse out the next white space separated field
Parse out the next white space separated field