FreeBSD/contrib/nvi/ex/ex_cscope.c
/*
 * lookup_ccmd --
 *	Return a pointer to the command structure.
 */
lookup_ccmd
Return a pointer to the command structure.
lookup_ccmd Return a pointer to the command structure .
static CC const *
lookup_ccmd(char *name)
{
	CC const *ccp;
	size_t len;
	len = strlen(name);
	for (ccp = cscope_cmds; ccp->name != NULL; ++ccp)
		if (strncmp(name, ccp->name, len) == 0)
			return (ccp);
	return (NULL);
}
static CC const * lookup_ccmd ( char * name ) { CC const * ccp ; size_t len ; len = strlen ( name ) ; for ( ccp = cscope_cmds ; ccp -> name != NULL ; ++ ccp ) if ( strncmp ( name , ccp -> name , len ) == 0 ) return ( ccp ) ; return ( NULL ) ; }
lookup_ccmd
      Return a pointer to the command structure.
lookup_ccmd Return a pointer to the command structure .