Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NAME

XStoreBytes − store data in cut buffer 0. 

Synopsis

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

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

bytesSpecifies the string of bytes to store.  The byte string is not necessarily ASCII or null-terminated. 

nbytesSpecifies the number of bytes to store. 

Description

XStoreBytes() 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 13, Other Programming Techniques.  For more information on selections, see Volume One, Chapter 10, Interclient Communication. 

Errors

BadAlloc

See Also

XFetchBuffer(), XFetchBytes(), XRotateBuffers(), XStoreBuffer(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026