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 responsibilitiy of the
+ 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 responsibilitiy of the
caller to free the memory returned, via PDC_freeclipboard().
- The length of the clipboard contents is returned in the length
+ The length of the clipboard contents is returned in the length
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.
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
+ 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
{
PDC_LOG(("PDC_clearclipboard() - called\n"));
- if (pdc_SDL_clipboard)
+ if (pdc_SDL_clipboard)
{
free(pdc_SDL_clipboard);
pdc_SDL_clipboard = NULL;