XFetchBytes

Syntax

char *XFetchBytes(display, nbytes_return)
      Display *display;
      int *nbytes_return;

Arguments

display Specifies the connection to the X server.
nbytes_return Returns the number of bytes in the buffer.

Description

The XFetchBytes() function returns the number of bytes in the nbytes_return argument, if the buffer contains data. Otherwise, the function returns NULL and sets nbytes to 0. The appropriate amount of storage is allocated and the pointer returned. The client must free this storage when finished with it by calling XFree().

See also

XFetchBuffer(), XRotateBuffers(), XStoreBuffer(), XStoreBytes(), "Using Cut Buffers".
Christophe Tronche, ch@tronche.com