Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 484 Bytes

testparse.c

File metadata and controls

24 lines (20 loc) · 484 Bytes
 
Feb 10, 2008
Feb 10, 2008
1
#include <stdio.h>
Feb 12, 2008
Feb 12, 2008
2
#include <stdlib.h>
Feb 10, 2008
Feb 10, 2008
3
4
5
6
7
8
9
10
11
#include "d3d2glsl.h"
int main(int argc, char **argv)
{
if (argv[1] != NULL)
{
FILE *io = fopen(argv[1], "rb");
if (io != NULL)
{
Feb 12, 2008
Feb 12, 2008
12
unsigned char *buf = (unsigned char *) malloc(1000000);
Feb 10, 2008
Feb 10, 2008
13
14
15
16
17
18
19
20
21
22
23
int rc = fread(buf, 1, 1000000, io);
fclose(io);
D3D2GLSL_parse(buf, rc);
free(buf);
} // if
} // if
return 0;
} // main
// end of testparse.c ...