¡@

Home 

c++ Programming Glossary: myt

Trying to use/include/compile 3rd party library, libmagic. C/C++ filetype detection

http://stackoverflow.com/questions/2105816/trying-to-use-include-compile-3rd-party-library-libmagic-c-c-filetype-detect

above #include stdio.h #include magic.h int main magic_t myt magic_open MAGIC_CONTINUE MAGIC_ERROR MAGIC_DEBUG MAGIC_MIME.. MAGIC_ERROR MAGIC_DEBUG MAGIC_MIME magic_load myt NULL printf magic output ' s' n magic_file myt __FILE__ magic_close.. magic_load myt NULL printf magic output ' s' n magic_file myt __FILE__ magic_close myt return 0 then compile with something..