-/*
- * Copyright (C) 1995-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: tstpquery.c,v 1.4 2007-01-03 08:42:16 adam Exp $
*/
#include <stdlib.h>
{
yaz_rpnquery_to_wrbuf(wrbuf, rpn);
- if (!strcmp(wrbuf_buf(wrbuf), expect_pqf))
+ if (!strcmp(wrbuf_cstr(wrbuf), expect_pqf))
res = 1;
- wrbuf_free(wrbuf, 1);
+ wrbuf_destroy(wrbuf);
}
}
yaz_pqf_destroy(parser);