function file_names=star_files(expr0,lsuf0,pref0);
%
% Call file_names=star_files(expr0);
% expr0 may be a cell array of suffixes;
%
if nargin<2, lsuf0=[]; end
if nargin<3, pref0=[]; end
%
if ~iscell(expr0), expr0=cellstr(expr0); end
%
nfile0=0;
file_names=cell(0,1);
for jsuf=1:length(expr0),
	expr=[pref0, char(expr0(jsuf))];
	if isempty(lsuf0), lsuf=length(expr)-1; else, lsuf=lsuf0(jsuf); end
	ls_struct=dir(expr); 
	nfile=size(ls_struct,1); 
	for jfile=1:nfile,
		name=ls_struct(jfile).name; lname=length(name);
		file_names(nfile0+jfile,1)={name(1:lname-lsuf)}; 
	end
	nfile0=nfile0 + nfile;
end
%
% COPYRIGHT (c) 2008
% 
% Applied Research Laboratories, The University of Texas at Austin
% (ARL:UT)
% All rights reserved.
% 
% This material may be reproduced by or for the U.S. Government
% only. This notice must appear in all copies of this file and its
% derivatives. Further distribution outside the U.S. Government is
% prohibited without the explicit written authorization from the
% Director of the Environmental Sciences Laboratory, ARL:UT.
% 
% THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
% EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE
% IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
% PURPOSE, OR NONINFRINGEMENT.
% 
% IN NO EVENT WILL ARL:UT BE LIABLE FOR ANY DAMAGES WHATSOEVER ARISING
% OUT OF THE USE OR INABILITY TO USE THIS SOFTWARE, EVEN IF ARL:UT HAS
% BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
