Code: Select all
#include "dos/dos.bi"
dim as uinteger ptr fa
_dos_getfileattr("z.z",fa)
print *fa
Code: Select all
#include "dos/dos.bi"
dim as uinteger ptr fa
_dos_getfileattr("z.z",fa)
print *fa
Maybe it needs to be like this?nedman47 wrote:I am trying to use the DJGPP function _dos_getfileattr to tell me if a file is marked as read only but all I get back is zero.
Code: Select all
#include "dos/dos.bi" dim as uinteger ptr fa _dos_getfileattr("z.z",fa) print *fa
Code: Select all
#include "dos/dos.bi"
dim as uinteger fa
_dos_getfileattr("z.z",@fa)
print fa
IIRC FB's DIR also allows this and worked well for me.nedman47 wrote:I am trying to use the DJGPP function _dos_getfileattr to tell me if a file is marked as read only but all I get back is zero.