Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!munnari.oz.au!manuel!anusf.anu.edu.au!mbl900 From: mbl900@anusf.anu.edu.au (Mathew BM LIM) Newsgroups: comp.sources.wanted Subject: example of how to use /etc/magic Keywords: magic file Message-ID: <1991Apr11.171134@anusf.anu.edu.au> Date: 11 Apr 91 07:11:34 GMT Sender: news@newshost.anu.edu.au Reply-To: mbl900@anusf.anu.edu.au (Mathew BM LIM) Organization: Australian National University Supercomputer Facility Lines: 12 Does anyone have an example of using /etc/magic from within a C program to figure out the contents of a file? Perhaps a public domain version of file(1)? Thanks. -- --- Mathew Lim, | Telephone : +61 6 249 2750 Unix Systems Programmer, | Fax : +61 6 247 3425 ANU Supercomputer Facility, | Australian National University, | ACSnet : Mathew.BM.Lim@anu.oz GPO Box 4, Canberra City, ACT, | Internet : Mathew.BM.Lim@anu.edu.au Australia 2601. |