public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Rupert Wood" <me@rupey.net>
To: "'danny'" <danny@3rdplanetsoftware.com>
Cc: <gcc-help@gcc.gnu.org>
Subject: RE: directories for newbies
Date: Mon, 22 Jul 2002 00:57:00 -0000	[thread overview]
Message-ID: <616BE6A276E3714788D2AC35C40CD18D5EC520@whale.softwire.co.uk> (raw)
In-Reply-To: <616BE6A276E3714788D2AC35C40CD18D71B3A6@whale.softwire.co.uk>

Danny wrote:

> I'm look for a function to get me the attributes of a file. Such as is
> the file a directory or not. Any ideas?

Stat(); test for the S_IFDIR bit set in st_mode. See the manual pages
for stat and the mknod function (in section 2 - not the mknod utility in
section 1).

Rup.

       reply	other threads:[~2002-07-22  7:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <616BE6A276E3714788D2AC35C40CD18D71B3A6@whale.softwire.co.uk>
2002-07-22  0:57 ` Rupert Wood [this message]
2002-07-22  1:20   ` danny
2002-07-22  2:39     ` Andrea 'Fyre Wyzard' Bocci
2002-07-21  4:11 danny
     [not found] ` <20020721164957.GA16367@satyr.sylvan.com>
2002-07-21 13:00   ` danny
     [not found]     ` <20020721203537.GA20277@satyr.sylvan.com>
2002-07-21 18:41       ` danny
2002-07-21 20:15         ` H.S.Rai
2002-07-21 20:41           ` danny
2002-07-22  6:32         ` Ish Rattan
2002-07-22  6:37           ` Nelson Guedes Paulo Junior
2002-08-10  5:02         ` Nix

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=616BE6A276E3714788D2AC35C40CD18D5EC520@whale.softwire.co.uk \
    --to=me@rupey.net \
    --cc=danny@3rdplanetsoftware.com \
    --cc=gcc-help@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).