Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xstorebuffer(3) [hpux man page]

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()

Check Out this Related Man Page

XStoreBytes(3X11)														 XStoreBytes(3X11)

NAME
XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers - manipulate cut and paste buffers SYNOPSIS
XStoreBytes(display, bytes, nbytes) Display *display; char *bytes; int nbytes; XStoreBuffer(display, bytes, nbytes, buffer) Display *display; char *bytes; int nbytes; int buffer; char *XFetchBytes(display, nbytes_return) Display *display; int *nbytes_return; char *XFetchBuffer(display, nbytes_return, buffer) Display *display; int *nbytes_return; int buffer; XRotateBuffers(display, rotate) Display *display; int rotate; ARGUMENTS
Specifies the buffer in which you want to store the bytes or from which you want the stored data returned. Specifies the bytes, which are not necessarily ASCII or null-terminated. Specifies the connection to the X server. Specifies the number of bytes to be stored. Returns the number of bytes in the buffer. Specifies how much to rotate the cut buffers. 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. If an invalid buffer is specified, the call has no effect. The data can have embedded null characters and need not be null-terminated. XStoreBuffer can generate a BadAlloc error. The XFetchBytes function returns the number of bytes in the nbytes_return argument, if the buffer contains data. Otherwise, the function returns NULL and sets nbytes to 0. The appropriate amount of storage is allocated and the pointer returned. The client must free this stor- age when finished with it by calling XFree. The XFetchBuffer function returns zero to the nbytes_return argument if there is no data in the buffer or if an invalid buffer is speci- fied. XFetchBuffer can generate a BadValue error. The XRotateBuffers function rotates the cut buffers, such that buffer 0 becomes buffer n, buffer 1 becomes n + 1 mod 8, and so on. This cut buffer numbering is global to the display. Note that XRotateBuffers generates BadMatch errors if any of the eight buffers have not been created. XRotateBuffers can generate a BadMatch error. DIAGNOSTICS
The server failed to allocate the requested resource or server memory. A value for an Atom argument does not name a defined Atom. Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request. Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error. SEE ALSO
XFree(3X11) Xlib -- C Language X Interface XStoreBytes(3X11)
Man Page