"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "os2/pdcclip.c" between
PDCurses-3.8.tar.gz and PDCurses-3.9.tar.gz

About: PDCurses is a multiple platforms curses library implementing most of the functions available in X/Open and System V R4 curses.

pdcclip.c  (PDCurses-3.8):pdcclip.c  (PDCurses-3.9)
skipping to change at line 20 skipping to change at line 20
### Synopsis ### Synopsis
int PDC_getclipboard(char **contents, long *length); int PDC_getclipboard(char **contents, long *length);
int PDC_setclipboard(const char *contents, long length); int PDC_setclipboard(const char *contents, long length);
int PDC_freeclipboard(char *contents); int PDC_freeclipboard(char *contents);
int PDC_clearclipboard(void); int PDC_clearclipboard(void);
### Description ### Description
PDC_getclipboard() gets the textual contents of the system's PDC_getclipboard() gets the textual contents of the system's
clipboard. This function returns the contents of the clipboard clipboard. This function returns the contents of the clipboard in the
in the contents argument. It is the responsibilitiy of the contents argument. It is the responsibility of the caller to free the
caller to free the memory returned, via PDC_freeclipboard(). memory returned, via PDC_freeclipboard(). The length of the clipboard
The length of the clipboard contents is returned in the length contents is returned in the length argument.
argument.
PDC_setclipboard copies the supplied text into the system's PDC_setclipboard copies the supplied text into the system's
clipboard, emptying the clipboard prior to the copy. clipboard, emptying the clipboard prior to the copy.
PDC_clearclipboard() clears the internal clipboard. PDC_clearclipboard() clears the internal clipboard.
### Return Values ### Return Values
indicator of success/failure of call. indicator of success/failure of call.
PDC_CLIP_SUCCESS the call was successful PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support PDC_CLIP_ACCESS_ERROR no clipboard support
### Portability ### Portability
X/Open BSD SYS V X/Open ncurses NetBSD
PDC_getclipboard - - - PDC_getclipboard - - -
PDC_setclipboard - - - PDC_setclipboard - - -
PDC_freeclipboard - - - PDC_freeclipboard - - -
PDC_clearclipboard - - - PDC_clearclipboard - - -
**man-end****************************************************************/ **man-end****************************************************************/
int PDC_getclipboard(char **contents, long *length) int PDC_getclipboard(char **contents, long *length)
{ {
HMQ hmq; HMQ hmq;
 End of changes. 2 change blocks. 
6 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)