STOCK C LIBRARY. Directory commands?

This is a discussion on STOCK C LIBRARY. Directory commands? within the C Programming forums, part of the General Programming Boards category; I've looked in the FAQ but didn't find my answer, so: Are there any library functions that support directory searches, ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    29

    STOCK C LIBRARY. Directory commands?

    I've looked in the FAQ but didn't find my answer, so:

    Are there any library functions that support directory searches, file searches, and the like that come with a stock installation of (I'm using Visual Studio 9)?

    I know you can get a GNU or whatever addon, but I'm just wondering if there is any way to, say, list files in a directory without using SYSTEM commands, and with only the stock headers I have. (stdio.h etc etc..)

    Thanks in advance.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    By definition, any interaction with the operating system will be operating-system specific.

    That said, if you have a stock installation of VS, then you have all the Microsoft-specific features, like ReadDir or ReadFile or whatever it's called (as you can tell I didn't bother to look it up).

  3. #3
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    Are there any library functions that support directory searches, file searches, and the like that come with a stock installation of (I'm using Visual Studio 9)?
    What?

    I know you can get a GNU or whatever addon, but I'm just wondering if there is any way to, say, list files in a directory without using SYSTEM commands, and with only the stock headers I have. (stdio.h etc etc..)
    opendir(), readdir(), closedir() are going to be about as close as you can get.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    29

    Ok

    Quote Originally Posted by Cactus_Hugger View Post
    What?

    opendir(), readdir(), closedir() are going to be about as close as you can get.
    cool. ok, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Library troubles with makefile
    By mslate in forum Linux Programming
    Replies: 17
    Last Post: 07-23-2009, 05:43 PM
  2. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 06:00 PM
  3. Adding a directory to a dynamic library path
    By vivharv in forum Windows Programming
    Replies: 3
    Last Post: 09-20-2007, 08:09 AM
  4. Linker errors in VC++ 2005
    By C+/- in forum C++ Programming
    Replies: 0
    Last Post: 05-18-2007, 08:42 AM
  5. Need Help
    By GSLR in forum C Programming
    Replies: 1
    Last Post: 02-05-2002, 12:20 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21