Untitled
public text v1 · immutable#include <cairo.h>
#include <cairo-ps.h>
static cairo_status_t
write (void *closure, const unsigned char *data, unsigned int length)
{
return CAIRO_STATUS_WRITE_ERROR;
}
int
main (int argc, char **argv)
{
cairo_surface_t *surface;
surface = cairo_ps_surface_create_for_stream (write, NULL, 1, 1);
cairo_surface_destroy (surface);
}