home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!reuven
- From: reuven@athena.mit.edu (Reuven M. Lerner)
- Subject: Is a dirent.h available for Think C 5.0?
- Message-ID: <REUVEN.92Sep9000139@e40-008-6.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: e40-008-6.mit.edu
- Organization: Massachusetts Institute of Technology
- Date: Wed, 9 Sep 1992 04:01:47 GMT
- Lines: 21
-
- I'm working on my first Mac program (which also happens to be my
- bachelor's thesis), and I've run into a few problems. The most major
- one so far appears when I try to compile some code that was written
- for a Unix box, and that I'm trying to incorporate into my code. (The
- Unix software is part of the WAIS -- Wide Area Information Server --
- package from Thinking Machines; among other things, my thesis will act
- as a primitive WAIS client.)
-
- Anyway, Think C 5.0 appears to be choking on variables of type struct
- dirent. This sort of makes sense, since dirents appear in Unix
- machines, and aren't really applicable to Macs. Nevertheless, I
- haven't been able to figure out a way around this problem -- somehow
- or other, I think I'm going to need dirents on the Mac.
-
- Does anyone know how to do this? Is it a simple case of defining the
- structure in an include file, and then using Think C's Unix library
- functions for accessing files? Do I have to rewrite some functions and
- structure definitions? Or have I stumbled onto a major hole in the
- library, and should I look somewhere else for information?
-
- Thanks for any help you can provide.
-