Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Need Help! - glob function in c++

Reply
Thread Tools

Re: Need Help! - glob function in c++

 
 
Thomas Matthews
Guest
Posts: n/a
 
      08-27-2003
aric_luri wrote:

> Hi,
> I'm trying to write function that write content of directory but can
> get wildcards (global expressions).
>
> I wrote this code for finding all files begin with 'g' under
> /usr/local/bin
>
> std::string globExpr = /usr/local/bin/g*
> glob_t globbuf;
> int status = glob( globExpr.c_str(), GLOB_DOOFFS, NULL, &globbuf );
>
> But I get status == 1 which is bad according to the manual pages.
>
> Does any one knows how can I do file globbing?
>
> Thanks, Uri.


The _standard_ C++ language has no facilities for platform specific
issues such as directories. You'll need to ask the experts in a
newsgroup dedicated to your platform. Read the FAQ and welcome.txt
below for more assistance.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
glob.glob output Hitesh Python 6 03-13-2007 03:45 PM
glob.glob unicode bug or feature Elbert Lev Python 5 08-02-2004 12:09 AM
Question about glob.glob <--newbie Sean Berry Python 3 05-04-2004 05:34 PM
RE: Bug in glob.glob for files w/o extentions in Windows Tim Peters Python 1 12-01-2003 09:22 AM
Bug in glob.glob for files w/o extentions in Windows Georgy Pruss Python 15 12-01-2003 04:04 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57