Path: utzoo!attcan!uunet!timbuk!cs.umn.edu!quest!viper!dave From: dave@viper.Lynx.MN.Org (David Messer) Newsgroups: comp.unix.programmer Subject: Re: file magic number Message-ID: <4055@viper.Lynx.MN.Org> Date: 29 Oct 90 05:34:22 GMT References: <41719@eerie.acsu.Buffalo.EDU> Reply-To: dave@viper.Lynx.MN.Org (David Messer) Organization: Lynx Data Systems, Eagan, MN Lines: 10 In article <41719@eerie.acsu.Buffalo.EDU> haozhou@acsu.buffalo.edu (hao zhou) writes: >Can anybody out there tell me how to figure out the file magic number >on unix? If possible, can somebody post a piece of sample code? What do you mean by "the" file magic number? Each file type (that uses them) has it's own magic number. Take a look at /etc/magic (on SysV) to get some examples. -- How can you tell if Bush is lying? | David Messer dave@Lynx.MN.Org -or- Watch his lips... | Lynx Data Systems ...!bungia!viper!dave