NAME
XStoreBuffer − store data in a cut buffer.
Synopsis
XStoreBuffer(display, bytes, nbytes, buffer)
Display *display;
char bytes[];
int nbytes;
int buffer;
Arguments
displaySpecifies a connection to an X server; returned from XOpenDisplay().
bytesSpecifies the string of bytes you want stored. The byte string is not necessarily ASCII or null-terminated.
nbytesSpecifies the number of bytes in the string.
bufferSpecifies 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 13, Other Programming Techniques. For more information on selections, see Volume One, Chapter 10, Interclient Communication.
Errors
BadAlloc
BadAtom
See Also
XFetchBuffer(), XFetchBytes(), XRotateBuffers(), XStoreBytes().
Copyright O’Reilly & Assoc. —