Re: [gtk-list] Re: file globbing



On Thu, Mar 25, 1999 at 11:28:25PM -0500, Havoc Pennington wrote:
> > Of course, if there's an easier way to do file globbing in C, I'm all
> > ears.  (csh has a glob command, but I couldn't find an equivalent for the
> > actual C language. :(
> > 
> 
> Unix-Posix-X/Open-BSD-GNU-whatever has a file globbing interface.
> 
> Try 'man glob', or look on www.opengroup.org for the Single Unix
> Specification, or check your favorite book. 
> 
> According to "Linux Application Development" it may be somewhat
> unportable. They suggest running 'ls <glob>' via popen() for portability.

Ugh! That doesn't work with directories: it's better to use echo.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]