static void print_os_err(Db *db) { char emsg[512]; couchstore_error_t ret; ret = couchstore_last_os_error(db, emsg, 512); if (ret == COUCHSTORE_SUCCESS) { fprintf(stderr, "OS Error: %s\n", emsg); } else { fprintf(stderr, "error: %s\n", couchstore_strerror(ret)); } }
static void print_os_err() { char emsg[512]; couchstore_last_os_error(emsg, 512); fprintf(stderr, "OS Error: %s\n", emsg); }