int XFindContext(display, rid, context, data_return)
      Display *display;
      XID rid;
      XContext context;
      XPointer *data_return;


display Specifies the connection to the X server.
rid Specifies the resource ID with which the data is associated.
context Specifies the context type to which the data belongs.
data_return Returns the data.


Because it is a return value, the data is a pointer. The XFindContext() function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOENT (context-not-found).

See also

XDeleteContext(), XSaveContext(), XUniqueContext(), "Using the Context Manager".
Christophe Tronche, [email protected]