hope all r doing fine..
i need a quick and very quick reply
m porting some cod:confused: e from windows to linux box..n i just encountered a function findfirstfile() used in windows..this function also takes wildcards as regular expression in the string
I searched the net for an alternate implementation in linux but hadnt got any! so m asking u guys tht if u have any idea or if someone has coded this function in linux then plz let me know... u can search findfirstfile() detail in MSDN:icon_mrgreen:
nabilchampion
0
Light Poster
Recommended Answers
Jump to PostYou probably want to use opendir, readdir, and closedir. Ask man for more details.
Jump to PostWell you could always use a regex library on the Linux platform (there are several), to match the filenames read by readdir().
Besides, finddirstfile() is really only wildcards, not full regular expressions.
Or there's also the glob interface in GlibC
All 10 Replies
Narue
5,707
Bad Cop
Team Colleague
iamthwee
nabilchampion
0
Light Poster
Salem
5,138
Posting Sage
nabilchampion
0
Light Poster
Salem
5,138
Posting Sage
nabilchampion
0
Light Poster
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Salem
5,138
Posting Sage
nabilchampion
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.