FreeBSD/usr.sbin/nandsim/nandsim_rcfile.c
/* Find section with given name and id */
Find section with given name and id
Find section with given name and id
static struct rcsection *
rc_findsect(struct rcfile *rcp, const char *sectname, int sect_id)
{
	struct rcsection *p;
	SLIST_FOREACH(p, &rcp->rf_sect, rs_next)
		if (strcmp(p->rs_name, sectname) == 0 && p->rs_id == sect_id)
			return (p);
	return (NULL);
}
static struct rcsection * rc_findsect ( struct rcfile * rcp , const char * sectname , int sect_id ) { struct rcsection * p ; SLIST_FOREACH ( p , & rcp -> rf_sect , rs_next ) if ( strcmp ( p -> rs_name , sectname ) == 0 && p -> rs_id == sect_id ) return ( p ) ; return ( NULL ) ; }
Find section with given name and id
Find section with given name and id