Mail Archives: djgpp/1994/02/15/03:07:03
> 1. In the DJGPP FAQ there were a mention about an external debugger for
> DJGPP ? Where can this be found (well any debugger would be ok) ?
go32 -d edebug32 some_program arguments
edebug32 is in bin/edebug32 (or use bin/ed32-dpmi).
> 2. How can you tell if directory entry is file or directory ? I know
> there is a structure called 'dirent' but that doesn't seem to incude
> that information, or does it ?
> Of course a dirty way of checking this would be to try to open the
> dir.entry (given by readdir) and if it opens fine it must be a normal
> file.. Is there a better way ?
Use stat() and S_IFDIR().
- Raw text -