XStoreBytes

Syntax

XStoreBytes(display, bytes, nbytes)
      Display *display;
      char *bytes;
      int nbytes;

Arguments

display Specifies the connection to the X server.
bytes Specifies the bytes, which are not necessarily ASCII or null-terminated.
nbytes Specifies the number of bytes to be stored.

Description

The data can have embedded null characters and need not be null-terminated. The cut buffer's contents can be retrieved later by any client calling XFetchBytes().

XStoreBytes() can generate a BadAlloc error.

Diagnostics

BadAlloc The server failed to allocate the requested source or server memory.

See also

XFetchBuffer(), XFetchBytes(), XRotateBuffers(), XStoreBuffer(), "Using Cut Buffers".
Christophe Tronche, [email protected]