From owner-freebsd-questions Mon Oct 9 0:27:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id 1925E37B66D for ; Mon, 9 Oct 2000 00:27:33 -0700 (PDT) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id LAA20255 for ; Mon, 9 Oct 2000 11:47:31 +0400 (MSD) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.0/8.10.0) id e997LO715390 for freebsd-questions@freebsd.org; Mon, 9 Oct 2000 11:21:24 +0400 Date: Mon, 9 Oct 2000 11:21:24 +0400 From: Igor Roboul To: FreeBSD questions Subject: Is there a C library interface for magic(5)? Message-ID: <20001009112123.A15235@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: FreeBSD questions Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, Is there a C library interface for magic(5) ? So, I can do char *s; s = magic_typeoffile(filename); Or something like this? -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message