linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ftw , nftw doesn't work
@ 2007-04-25 12:45 Nikola
  2007-04-25 13:16 ` Stephen Kratzer
  2007-04-25 14:05 ` leslie.polzer
  0 siblings, 2 replies; 4+ messages in thread
From: Nikola @ 2007-04-25 12:45 UTC (permalink / raw)
  To: linux-c-programming

Hi,

I am trying to parse dir tree with ftw and nftw on Linux (debian) but 
without result.

------------------------------------------------------

#include <stdio.h>
#include <ftw.h>


int fn(const char *file, const struct stat *sb, int flag){

        printf("-->\n");
}


int main(int argc,char **argv){


        ftw("/etc/", fn, 5);

        return 0;
}

------------------------------------------------------

bash# gcc test.c
bash# ./a.out
-->
bash#

------------------------------------------------------

Does anyone knows what might be the problem.

tnx in advance.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-25 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 12:45 ftw , nftw doesn't work Nikola
2007-04-25 13:16 ` Stephen Kratzer
2007-04-25 13:43   ` Benoit Fouet
2007-04-25 14:05 ` leslie.polzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).