BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
clipboard.h File Reference

Header file for the clipboard library. More...

Go to the source code of this file.

Functions

void clipboard::Reset ()
 

Detailed Description

Header file for the clipboard library.

This header file defines the interface for the clipboard library, which allows writing strings to a clipboard buffer using standard file operations. The clipboard content is updated when the file is closed.

Usage:

#include <clipboard.h>
// Reset clipboard
clipboard::Reset();
// Open file for writing to clipboard
const char* fname = "/clipboard/con0";
FILE* fp_clipboard = fopen(fname, "wt");
_ASSERT(fp_clipboard, fname);
fprintf(fp_clipboard, "hello clip\n");
// Nothing is written to the clipboard until fclose() is called
fclose(fp_clipboard);
Header file for the clipboard library.