summaryrefslogtreecommitdiffstats
path: root/Tests/SystemInformation/DumpInformation.cxx
blob: bb5a64963c2b8368b1d9d8b55f92d3d0c96e47bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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))
    {
    int ch = fgetc(file);
    if(ch != EOF)
      {
      putc(ch, stdout);
      }
    }
  fclose(file);
  return 0;
}