diff options
author | rsc <devnull@localhost> | 2005-01-03 06:40:20 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-03 06:40:20 +0000 |
commit | 058b0118a52061ad57694c01fc8763b22b789c4d (patch) | |
tree | 6685f04dea5ed68edaa34998c976aed34c55fe94 /man/man3/getsnarf.3 | |
parent | 2600337aa704efbeba8201e88147a764b4fd2b90 (diff) | |
download | plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.tar.gz plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.tar.bz2 plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.zip |
Some man pages.
Diffstat (limited to 'man/man3/getsnarf.3')
-rw-r--r-- | man/man3/getsnarf.3 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/man/man3/getsnarf.3 b/man/man3/getsnarf.3 new file mode 100644 index 00000000..a90d5950 --- /dev/null +++ b/man/man3/getsnarf.3 @@ -0,0 +1,37 @@ +.TH GETSNARF 3 +.SH NAME +getsnarf, putsnarf \- window system snarf (cut and paste) buffer +.SH SYNOPSIS +.B #include <draw.h> +.PP +.B +char *getsnarf(void) +.PP +.B +void putsnarf(char *text) +.SH DESCRIPTION +.I Getsnarf +and +.I putsnarf +access the window system's snarf (cut and paste) buffer. +.PP +.I Getsnarf +returns a copy of the current buffer; +the returned pointer should be freed with +.I free +(see +.IR malloc (3)) +when no longer needed. +.PP +.I Putsnarf +sets the buffer to the text string +.IR text . +.PP +Callers should assume that the snarf buffer is UTF. +If the window system does not keep the buffer in UTF, +.I getsnarf +and +.I putsnarf +will convert as necessary. +.SH SOURCE +.B /usr/local/plan9/src/libdraw/x11-itrans.c |