blob: 8811e6303baebf96d7f40fad4b9f5f4be2cb9de3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <cairo.h>
#include <cairo-script-interpreter.h>
#include <stdio.h>
static cairo_status_t
write (void *closure, const unsigned char *data, unsigned int length)
{
if (fwrite (data, length, 1, closure) != 1)
return CAIRO_STATUS_WRITE_ERROR;
return CAIRO_STATUS_SUCCESS;
}
int
main (void)
{
return cairo_script_interpreter_translate_stream (stdin, write, stdout);
}
|