Skip to content

Instantly share code, notes, and snippets.

@pcarrier
Created August 1, 2014 03:17
Show Gist options
  • Save pcarrier/a36c073fb1308a40c93c to your computer and use it in GitHub Desktop.
Save pcarrier/a36c073fb1308a40c93c to your computer and use it in GitHub Desktop.
#include <xcb/xcb.h>
#include <stdio.h>
/*
gcc -o xcbtest xcbtest.c -lxcb
*/
int main() {
int i = -1;
xcb_connection_t *c;
do {
c = xcb_connect(NULL, NULL);
putc('.', stderr);
i++;
} while (!xcb_connection_has_error(c));
fprintf(stderr, "\n\n%d connections\n\n", i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment