linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nikola <root.admin1@zg.t-com.hr>
To: linux-c-programming@vger.kernel.org
Subject: ftw , nftw doesn't work
Date: Wed, 25 Apr 2007 14:45:27 +0200	[thread overview]
Message-ID: <462F4D67.5090600@zg.t-com.hr> (raw)

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.


             reply	other threads:[~2007-04-25 12:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25 12:45 Nikola [this message]
2007-04-25 13:16 ` ftw , nftw doesn't work Stephen Kratzer
2007-04-25 13:43   ` Benoit Fouet
2007-04-25 14:05 ` leslie.polzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=462F4D67.5090600@zg.t-com.hr \
    --to=root.admin1@zg.t-com.hr \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).