-/*
- * Copyright (C) 2005-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
* See the file LICENSE for details.
- *
- * $Id: tst_retrieval.c,v 1.9 2007-01-03 08:42:16 adam Exp $
- *
*/
#include <yaz/retrieval.h>
#include <yaz/test.h>
if (!p)
{
- if (expect_error && !strcmp(wrbuf_buf(w), expect_error))
+ if (expect_error && !strcmp(wrbuf_cstr(w), expect_error))
ret = 1;
else
{
ret = 0;
- printf("%.*s\n", wrbuf_len(w), wrbuf_buf(w));
+ printf("%s\n", wrbuf_cstr(w));
}
}
else
ret = 1;
}
}
- wrbuf_free(w, 1);
+ wrbuf_destroy(w);
return ret;
}