1XStoreBytes(3)                  XLIB FUNCTIONS                  XStoreBytes(3)
2
3
4

NAME

6       XStoreBytes,  XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers -
7       manipulate cut and paste buffers
8

SYNTAX

10       int XStoreBytes(Display *display, _Xconst char *bytes, int nbytes);
11
12       int XStoreBuffer(Display *display, _Xconst char *bytes, int nbytes, int
13              buffer);
14
15       char *XFetchBytes(Display *display, int *nbytes_return);
16
17       char *XFetchBuffer(Display *display, int *nbytes_return, int buffer);
18
19       int XRotateBuffers(Display *display, int rotate);
20

ARGUMENTS

22       buffer    Specifies  the buffer in which you want to store the bytes or
23                 from which you want the stored data returned.
24
25       bytes     Specifies the bytes, which are not necessarily ASCII or null-
26                 terminated.
27
28       display   Specifies the connection to the X server.
29
30       nbytes    Specifies the number of bytes to be stored.
31
32       nbytes_return
33                 Returns the number of bytes in the buffer.
34
35       rotate    Specifies how much to rotate the cut buffers.
36

DESCRIPTION

38       The  data can have embedded null characters and need not be null-termi‐
39       nated.  The cut buffer's contents can be retrieved later by any  client
40       calling XFetchBytes.
41
42       XStoreBytes can generate a BadAlloc error.
43
44       If  an  invalid  buffer is specified, the call has no effect.  The data
45       can have embedded null characters and need not be null-terminated.
46
47       XStoreBuffer can generate a BadAlloc error.
48
49       The XFetchBytes function returns the number of bytes in the  nbytes_re‐
50       turn  argument,  if  the buffer contains data.  Otherwise, the function
51       returns NULL and sets nbytes to 0.  The appropriate amount  of  storage
52       is allocated and the pointer returned.  The client must free this stor‐
53       age when finished with it by calling XFree.
54
55       The XFetchBuffer function returns zero to the nbytes_return argument if
56       there is no data in the buffer or if an invalid buffer is specified.
57
58       XFetchBuffer can generate a BadValue error.
59
60       The XRotateBuffers function rotates the cut buffers, such that buffer 0
61       becomes buffer n, buffer 1 becomes n + 1 mod 8, and so  on.   This  cut
62       buffer  numbering  is  global to the display.  Note that XRotateBuffers
63       generates BadMatch errors if any of the eight  buffers  have  not  been
64       created.
65
66       XRotateBuffers can generate a BadMatch error.
67

DIAGNOSTICS

69       BadAlloc  The  server  failed  to  allocate  the  requested resource or
70                 server memory.
71
72       BadAtom   A value for an Atom argument does not name a defined Atom.
73
74       BadMatch  Some argument or pair of arguments has the correct  type  and
75                 range  but  fails  to match in some other way required by the
76                 request.
77
78       BadValue  Some numeric value falls outside the range of values accepted
79                 by  the request.  Unless a specific range is specified for an
80                 argument, the full range defined by the  argument's  type  is
81                 accepted.   Any argument defined as a set of alternatives can
82                 generate this error.
83

SEE ALSO

85       XFree(3)
86       Xlib - C Language X Interface
87
88
89
90X Version 11                     libX11 1.7.2                   XStoreBytes(3)
Impressum