How do I check if an object file is in COFF or ELF format from within C? How do I check if an object file is in COFF or ELF format from within C? linux linux