| delorie.com/archives/browse.cgi | search |
| From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: getting file attributes |
| Date: | 9 Aug 2001 17:12:05 GMT |
| Organization: | Aachen University of Technology (RWTH) |
| Lines: | 19 |
| Message-ID: | <9kug95$bfp$1@nets3.rz.RWTH-Aachen.DE> |
| References: | <crzc7.126807$U27 DOT 3826258 AT news DOT chello DOT at> |
| NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
| X-Trace: | nets3.rz.RWTH-Aachen.DE 997377125 11769 137.226.32.75 (9 Aug 2001 17:12:05 GMT) |
| X-Complaints-To: | abuse AT rwth-aachen DOT de |
| NNTP-Posting-Date: | 9 Aug 2001 17:12:05 GMT |
| Originator: | broeker@ |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Kurt Aistinger <kurt DOT aistinger AT chello DOT at> wrote: > Hi! > Is there a way how I can determine the attributes of a file with DJGPP? The classic, albeit somewhat Unixoid way would be stat(). > Actually I want to know if a certain file is a directory. The S_ISDIR() macro does that. > The _dos_getfileattr() function doesn't support long filenames. ... and its docs already give you the link to stat(), which does. Why didn't you see it right away? -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |