summaryrefslogtreecommitdiffstats
path: root/Tests/SystemInformation/DumpInformation.cxx
blob: ab45228092909f61547ccd0d9cc68683d786b92c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include "DumpInformation.h"

int main(int, char*[])
{
  FILE* file = fopen(CMAKE_DUMP_FILE, "r");
  if(!file)
    {
    printf("Error, could not open file %s", CMAKE_DUMP_FILE);
    return -1;
    }
  while(!feof(file))
    {
    putc(fgetc(file), stdout);
    }
  fclose(file);
  return 0;
}