XStoreBuffer() XStoreBuffer()
Name
XStoreBuffer - store data in a cut buffer.
Synopsis
XStoreBuffer(display, bytes, nbytes, buffer)
Display *display;
char bytes[];
int nbytes;
int buffer;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
bytes Specifies the string of bytes you want stored. The byte string is not necessarily ASCII or NULL-terminated.
nbytes Specifies the number of bytes in the string.
buffer Specifies the cut buffer in which to store the byte string. Must be in the range 0-7.
Description
XStoreBuffer() stores the specified data into any one of the eight cut buffers. All eight buffers must be stored into before they can be
circulated with XRotateBuffers(). The cut buffers are numbered 0 through 7. Use XFetchBuffer() to recover data from any cut buffer.
Note that selections are the preferred method of transferring data between applications.
For more information on cut buffers, see Volume One, Chapter 15, Other Programming Techniques. For more information on selections, see
Volume One, Chapter 12, Interclient Communication.
Errors
BadAlloc
BadAtom
See Also
XFetchBuffer(), XFetchBytes(), XRotateBuffers(), XStoreBytes().
Xlib - Cut Buffers XStoreBuffer()