0
|
1 #include <stdio.h> |
|
2 #include "engine.h" |
|
3 |
|
4 int matbuffer = 0; |
|
5 char* matbufptr = NULL; |
|
6 int matbufcnt = 0; |
|
7 |
|
8 int engOutputBuffer( Engine *ep, char *p, int n ) |
|
9 { |
|
10 |
|
11 #ifdef DEBUGAPI |
|
12 fprintf( stdout, "Begin engOutputBuffer ...\n" ); |
|
13 fflush( stdout ); |
|
14 #endif |
|
15 |
|
16 if( p != NULL ) |
|
17 { |
|
18 matbufptr = p; |
|
19 matbufcnt = n; |
|
20 } |
|
21 else |
|
22 { |
|
23 matbufptr = NULL; |
|
24 matbufcnt = 0; |
|
25 } |
|
26 |
|
27 #ifdef DEBUGAPI |
|
28 fprintf( stdout, "Exit engOutputBuffer with status %d\n", 0 ); |
|
29 fflush( stdout ); |
|
30 #endif |
|
31 |
|
32 return 0; |
|
33 } |