Blob
1 .TH GETSNARF 32 .SH NAME3 getsnarf, putsnarf \- window system snarf (cut and paste) buffer4 .SH SYNOPSIS5 .B #include <draw.h>6 .PP7 .B8 char *getsnarf(void)9 .PP10 .B11 void putsnarf(char *text)12 .SH DESCRIPTION13 .I Getsnarf14 and15 .I putsnarf16 access the window system's snarf (cut and paste) buffer.17 .PP18 .I Getsnarf19 returns a copy of the current buffer;20 the returned pointer should be freed with21 .I free22 (see23 .IR malloc (3))24 when no longer needed.25 .PP26 .I Putsnarf27 sets the buffer to the text string28 .IR text .29 .PP30 Callers should assume that the snarf buffer is UTF.31 If the window system does not keep the buffer in UTF,32 .I getsnarf33 and34 .I putsnarf35 will convert as necessary.36 .SH SOURCE37 .B \*9/src/libdraw/x11-itrans.c