GNOME-VFS MIME TYPE EXAMPLE

xiaoxiao2021-03-06  66

#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;}

转载请注明原文地址:https://www.9cbs.com/read-119739.html

New Post(0)