All pastes #903803 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-14 14:20 UTC
rendered paste body
#include <gsf/gsf-utils.h>
#include <gsf/gsf-input-stdio.h>
#include <libwpd/GSFStream.h>
#include <libwpd/WPDocument.h>

#include <iostream>

using namespace std;

int main()
{
        char szFilename[] = "Backupofsave.wbk";
        gsf_init ();
        GError *err;
        GsfInput * input;
        input = GSF_INPUT(gsf_input_stdio_new (szFilename, &err));
        GSFInputStream gsfInput(input);
        WPDConfidence confidence = WPDocument::isFileFormatSupported(&gsfInput, true);
        if(confidence == WPD_CONFIDENCE_LIKELY)
                cout << "this document will be likely supported" << endl;
        else
                cout << "this document will not be likely supported" << endl;
}