FreeBSD/usr.sbin/jail/state.c
/*
 * Find a jail object by name.
 */
Find a jail object by name.
Find a jail object by name .
static struct cfjail *
find_jail(const char *name)
{
	struct cfjail **jp;
	jp = bsearch(name, jails_byname, njails, sizeof(struct cfjail *),
	    cmp_jailptr_name);
	return jp ? *jp : NULL;
}
static struct cfjail * find_jail ( const char * name ) { struct cfjail * * jp ; jp = bsearch ( name , jails_byname , njails , sizeof ( struct cfjail * ) , cmp_jailptr_name ) ; return jp ? * jp : NULL ; }
Find a jail object by name.
Find a jail object by name .