#include / * for strlen () * / * for ctime () * / # include #include #include
#ifdef Linux # include / * for major () und minor () * / # endif / * Linux * /
INT main (int Argc, char ** argv) {if (! gnome_vfs_init ()) {g_error ("% s: could not initialize gnomevfs / n", argv [0]); exit (2);}
Printf ("% s / n", gnome_vfs_get_file_mime_type (Argv [1], NULL, FALSE);
GNOME_VFS_SHUTDOWN ();
Return 0;}