Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_clipboard.c File Reference

n_clipboard example + self test: own the CLIPBOARD and PRIMARY selections, round-trip text through them, and prove a separate X client can fetch the text as text/plain;charset=utf-8 (the target Chromium requires) and query the served TARGETS - the case a UTF8_STRING-only backend fails. More...

#include "nilorea/n_clipboard.h"
#include "nilorea/n_log.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for ex_clipboard.c:

Go to the source code of this file.

Macros

#define CHECK(cond, msg)

Functions

int main (void)

Variables

static int failures = 0

Detailed Description

n_clipboard example + self test: own the CLIPBOARD and PRIMARY selections, round-trip text through them, and prove a separate X client can fetch the text as text/plain;charset=utf-8 (the target Chromium requires) and query the served TARGETS - the case a UTF8_STRING-only backend fails.

Author
Castagnier Mickael

Definition in file ex_clipboard.c.

Macro Definition Documentation

◆ CHECK

#define CHECK ( cond,
msg )
Value:
do { \
if (!(cond)) { \
printf("ex_clipboard: FAIL: %s\n", msg); \
failures++; \
} \
} while (0)
static int failures
Definition ex_atlas.c:51
Examples
ex_gui_md.c, ex_markdown.c, ex_url_safe.c, and ex_wrap.c.

Definition at line 37 of file ex_clipboard.c.

Referenced by main(), main(), and run().

Function Documentation

◆ main()

int main ( void )

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 36 of file ex_clipboard.c.