Package: file Version: 4.15-2 Severity: wishlist I think the libmagic-dev interface, although very flexible, is overly complicated for most situations. How about a simpler wrap function like:
char * magic_simple (char *filename, int flags) { char *ret; magic_t m; m = magic_open (flags); magic_load (m, NULL); ret = magic_file (m, filename); magic_close (m); return ret; } -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-amd64-k8 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Versions of packages libmagic-dev depends on: ii libmagic1 4.15-2 File type determination library us libmagic-dev recommends no packages. Versions of packages file depends on: ii libc6 2.3.6-3 GNU C Library: Shared libraries an ii libmagic1 4.15-2 File type determination library us ii zlib1g 1:1.2.3-11 compression library - runtime -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]