+ ccl_stop_words_t csw = ccl_stop_words_create();
+ int idx = 0;
+ printf("First:\n");
+ ccl_pr_tree(rpn, stdout);
+ if (ccl_stop_words_tree(csw, bibset, &rpn))
+ {
+ printf("Second:\n");
+ ccl_pr_tree(rpn, stdout);
+ printf("\n");
+
+ for (idx = 0; ; idx++)
+ {
+ const char *qname;
+ const char *term;
+ if (!ccl_stop_words_info(csw, idx,
+ &qname, &term))
+ break;
+ printf("Removed from %s: %s\n",
+ qname ? qname : "none", term);
+ }
+ }
+ ccl_stop_words_destroy(csw);