#include #include #include "splay.h" #include "fields.h" main() { Splay *b; Splay *bn; IS is; is = new_inputstruct(NULL); b = new_splay(); while (get_line(is) >= 0) { (void) splay_insert_str(b, strdup(is->text1), new_jval_v(NULL)); } splay_traverse(bn, b) { printf("%s", jval_s(bn->key)); } }