Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
GETSNARF(3)		   Library Functions Manual		   GETSNARF(3)

NAME
       getsnarf, putsnarf - window system snarf	(cut and paste)	buffer

SYNOPSIS
       #include	<draw.h>

       char *getsnarf(void)

       void putsnarf(char *text)

DESCRIPTION
       Getsnarf	 and putsnarf access the window	system's snarf (cut and	paste)
       buffer.

       Getsnarf	returns	a copy of the current  buffer;	the  returned  pointer
       should be freed with free (see when no longer needed.

       Putsnarf	sets the buffer	to the text string text.

       Callers should assume that the snarf buffer is UTF.  If the window sys-
       tem does	not keep the buffer in UTF, getsnarf and putsnarf will convert
       as necessary.

SOURCE
       /src/libdraw/snarf.c

SEE ALSO
								   GETSNARF(3)

NAME | SYNOPSIS | DESCRIPTION | SOURCE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=getsnarf&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help