Can anyone tell me the best way in either 'C' or assembly to determine
the file type (executable, directory, etc)?
Thanks,
Jim
As it happens I have been doing just this in C. What I do is to read the header of the file and look at byte 5. The header is defined in sys_qlib_h as typedef qdirect_t and the item you want is d_type, which is "char".
The header of 64 bytes comes if you use fs_headr.
Obviously it is really the same in assembler.
George
George
