XStoreBytes()XStoreBytes()NameXStoreBytes – store data in cut buffer 0.
Synopsis
XStoreBytes(display, bytes, nbytes)
Display *display;
char bytes[];
int nbytes;
Arguments
display Specifies a connection to an X server; returned from XOpenDis‐
play().
bytes Specifies the string of bytes to store. The byte string is
not necessarily ASCII or NULL-terminated.
nbytes Specifies the number of bytes to store.
DescriptionXStoreBytes() stores data in cut buffer 0, usually for reading by
another client that already knows the meaning of the contents. Note
that the cut buffer's contents need not be text, so null bytes are not
special.
The cut buffer's contents may be retrieved later by any client calling
XFetchBytes().
Use XStoreBuffer() to store data in buffers 1-7. 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
See AlsoXFetchBuffer(), XFetchBytes(), XRotateBuffers(), XStoreBuffer().
Xlib - Cut Buffers XStoreBytes()