[Previous] [Contents] [Index] [Next]

PhClipboardPasteString()

Paste string-only data from the clipboard

Synopsis:

char *PhClipboardPasteString( unsigned short ig );

Description:

This function is a simple cover function for pasting string-only data from the clipboard. The function calls PhClipboardPasteStart(), requests data of type TEXT using PhClipboardPasteType(), and finishes with PhClipboardPasteFinish().

Each input group has its own private clipboard, which you can select through the ig parameter. You can determine the current input group as follows:

This function allocates the resultant string with strdup(). Your application must free() this memory after use.

Returns:

A pointer to the text string extracted from the clipboard, or NULL if there was no available data or an error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhClipboardCopy(), PhClipboardCopyString(), PhClipboardPasteFinish(), PhClipboardPasteStart(), PhClipboardPasteType(), PhClipboardPasteTypeN(), PhClipHeader

strdup(), free() in the QNX 4 C Library Reference


[Previous] [Contents] [Index] [Next]