---
name: "XpGetContext"
section: "3"
platform: "linux"
package: "libxp"
version: "1.0.4-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XpGetContext"
---

# XpGetContext(3)

Gets the current print context-id for a display connection.

## NAME

XpGetContext - Gets the current print context-id for a display connection.

## SYNOPSIS

      cc \[ flag... \] file... -lXp \[ library... \]\
\
       \#include \<X11/extensions/Print.h\>

**XPContext XpGetContext** ( *display* )\
\
       Display \**display*;

## ARGUMENTS

- *display*

  Specifies a pointer to the Display structure; returned from XOpenDisplay.

## DESCRIPTION

*XpGetContext* returns the id of the current print context associated with *display.* If a print context has not been set, a value of None is returned.
