src/stdlib/proptbls.c
/*===================================================
 * add_path_files_to_proplist -- Add all files on path to list of property tables
 * Created: 2002/10/19, Perry Rapp
 *=================================================*/
- Add all files on path to list of property tables
Created: 2002/10/19, Perry Rapp
- Add all files on path to list of property tables Created : 2002 / 10 / 19 Perry Rapp
INT
add_path_files_to_proplist (CNSTRING path, SELECT_FNC selectfnc, LIST list)
{
	STRING dirs, p;
	INT ct=0;
	if (!path || !path[0]) return 0;
	dirs = (STRING)stdalloc(strlen(path)+2);
	chop_path(path, dirs);
	for (p=dirs; *p; p+=strlen(p)+1) {
		add_dir_files_to_proplist(p, selectfnc, list);
	}
	return ct;
}
INT add_path_files_to_proplist ( CNSTRING path , SELECT_FNC selectfnc , LIST list ) { STRING dirs , p ; INT ct = 0 ; if ( ! path || ! path [ 0 ] ) return 0 ; dirs = ( STRING ) stdalloc ( strlen ( path ) + 2 ) ; chop_path ( path , dirs ) ; for ( p = dirs ; * p ; p += strlen ( p ) + 1 ) { add_dir_files_to_proplist ( p , selectfnc , list ) ; } return ct ; }
add_path_files_to_proplist -- Add all files on path to list of property tables
 Created: 2002/10/19, Perry Rapp
add_path_files_to_proplist -- Add all files on path to list of property tables Created : 2002 / 10 / 19 Perry Rapp