Shows basic packing and unpacking of fields.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wiredtiger.h>
static const char *home;
int
main(void)
{
char buf[50];
size_t size;
int i, j, k, ret;
if (getenv("WIREDTIGER_HOME") == NULL) {
home = "WT_HOME";
ret = system("rm -rf WT_HOME && mkdir WT_HOME");
} else
home = NULL;
fprintf(stderr, "Error connecting to %s: %s\n",
if ((ret = conn->
open_session(conn, NULL, NULL, &session)) != 0)
fprintf(stderr, "Error opening a session on %s: %s\n",
if (size > sizeof(buf)) {
}
if ((ret = conn->
close(conn, NULL)) != 0)
fprintf(stderr, "Error connecting to %s: %s\n",
return (ret);
}