#include #include #include int main(int argc, char* argv[]) { char* addr = mmap(NULL, 1024, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); fprintf(stderr, "got address %p\n", addr); if (addr == MAP_FAILED) { fprintf(stderr, "mmap failed\n"); return 1; } poppler_document_new_from_data(addr, 0, NULL, NULL); munmap((void*)addr, 1024); return 0; }