I am new to C Language and need to convert the following line of code from fortran90 to C. Any help will be highly appreciated.
INQUIRE(File=filename, OPENED = op,EXIST = ex, ACCESS=ac, NUMBER= unit_no)
where
EXIST=lex ! true or false
OPENED=lod ! true or false
NAME=fnm ! filename
ACCESS=acc ! 'DIRECT' or 'SEQUENTIAL'
NUMBER=unum ! unit number