40 lines
697 B
C++
40 lines
697 B
C++
#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\n", CMAKE_DUMP_FILE);
|
|
return -1;
|
|
}
|
|
printf("#Note less than will show up as { and greater than will be }\n");
|
|
while(!feof(file))
|
|
{
|
|
int ch = fgetc(file);
|
|
if(ch != EOF)
|
|
{
|
|
if(ch == '<')
|
|
{
|
|
printf("<");
|
|
}
|
|
else if(ch == '>')
|
|
{
|
|
printf(">");
|
|
}
|
|
else if(ch == '&')
|
|
{
|
|
printf("&");
|
|
}
|
|
else
|
|
{
|
|
putc(ch, stdout);
|
|
}
|
|
}
|
|
}
|
|
printf("\n");
|
|
fclose(file);
|
|
return 0;
|
|
}
|