Enhanced X-Windows Library (libX11.a)
char *_XAllocScratch(DisplayID, NumberBytes) Display *DisplayID; unsigned long NumberBytes;
The _XAllocScratch extension function returns a scratch buffer. If you need a single scratch buffer inside a critical section to pack and unpack data to and from wire protocol, the general memory allocators may be too expensive to use (particularly in output routines, which are performance critical). Use of a routine with this storage must only be used inside the critical section of your stub.
DisplayID | Specifies the ID of the display. |
NumberBytes | Specifies the length, in bytes, of the buffer to be allocated. |
Using Extensions in AIXwindows in AIX Version 4.3 AIXwindows Programming Guide.
AIXwindows Overview for Programmers in AIX Version 4.3 AIXwindows Programming Guide.