All pastes #473762 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-06 12:28 UTC
rendered paste body
#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);
}