Sha256: be56c4a6a0c185934fc65b7626965927266d11b60ff1856c97593c77b25366a5

Contents?: true

Size: 468 Bytes

Versions: 18

Compression:

Stored size: 468 Bytes

Contents

#include "../deps/file2str/file2str.h"
#include "../../src/mtex2MML.h"

int main (int argc, char ** argv)
{
  char *buffer = file2str("file.test");
  long length = strlen(buffer);

  char * mathml = mtex2MML_parse (buffer, length);

  if (mathml) {
    fputs (mathml, stdout);
    fputs ("\n", stdout);

    mtex2MML_free_string (mathml);
    mathml = 0;
  } else {
    fputs ("mtex2MML: mtex parser failed to generate MathML from mtex!\n", stderr);
  }
  return 0;
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.18 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.14 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.13 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.12 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.11 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.10 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.9 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.8 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.7 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.6 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.5 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.4 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.3 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.2 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.1 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.6.0 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc
mathematical-1.5.12 ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc