"Fossies" - the Fresh Open Source Software Archive

Member "libisoburn-1.5.4/releng/codesamples/api_xorriso.cpp" (8 Jul 2020, 643 Bytes) of package /linux/misc/libisoburn-1.5.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "api_xorriso.cpp" see the Fossies "Dox" file reference documentation.

    1 // Just to ensure we are C++-clean. This should not spit too much noise
    2 
    3 /* Copyright 2011 George Danchev <danchev@spnet.net>
    4  * Released into the public domain
    5  */
    6 
    7 #if __WORDSIZE == 32
    8 #define _LARGEFILE_SOURCE 1
    9 #define _FILE_OFFSET_BITS 64
   10 #endif
   11 
   12 #include <iostream>
   13 #include <inttypes.h>
   14 
   15 //extern "C" {
   16 #include "xorriso/xorriso.h"
   17 //}
   18 
   19 int main() {
   20    int major=-1, minor=-1, micro=-1;
   21    Xorriso__version(&major, &minor, &micro);
   22    if (major<0 || minor<0 || micro<0)
   23           return -1;
   24    std::cout 
   25                << " major:" << major
   26                << " minor:" << minor
   27                << " micro:" << micro
   28    ;
   29    return 0;
   30 }