You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.8 KiB
C
68 lines
1.8 KiB
C
/* PDCurses */
|
|
|
|
#include <curspriv.h>
|
|
|
|
/*man-start**************************************************************
|
|
|
|
clipboard
|
|
---------
|
|
|
|
### Synopsis
|
|
|
|
int PDC_getclipboard(char **contents, long *length);
|
|
int PDC_setclipboard(const char *contents, long length);
|
|
int PDC_freeclipboard(char *contents);
|
|
int PDC_clearclipboard(void);
|
|
|
|
### Description
|
|
|
|
PDC_getclipboard() gets the textual contents of the system's
|
|
clipboard. This function returns the contents of the clipboard in the
|
|
contents argument. It is the responsibility of the caller to free the
|
|
memory returned, via PDC_freeclipboard(). The length of the clipboard
|
|
contents is returned in the length argument.
|
|
|
|
PDC_setclipboard copies the supplied text into the system's
|
|
clipboard, emptying the clipboard prior to the copy.
|
|
|
|
PDC_clearclipboard() clears the internal clipboard.
|
|
|
|
### Return Values
|
|
|
|
indicator of success/failure of call.
|
|
PDC_CLIP_SUCCESS the call was successful
|
|
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
|
|
the clipboard contents
|
|
PDC_CLIP_EMPTY the clipboard contains no text
|
|
PDC_CLIP_ACCESS_ERROR no clipboard support
|
|
|
|
### Portability
|
|
X/Open ncurses NetBSD
|
|
PDC_getclipboard - - -
|
|
PDC_setclipboard - - -
|
|
PDC_freeclipboard - - -
|
|
PDC_clearclipboard - - -
|
|
|
|
**man-end****************************************************************/
|
|
|
|
int PDC_clearclipboard( void)
|
|
{
|
|
return( 0);
|
|
}
|
|
|
|
int PDC_freeclipboard( char *contents)
|
|
{
|
|
return( 0);
|
|
}
|
|
|
|
int PDC_getclipboard( char **contents, long *length)
|
|
{
|
|
return( 0);
|
|
}
|
|
|
|
int PDC_setclipboard( const char *contents, long length)
|
|
{
|
|
return( 0);
|
|
}
|
|
|