+static int
+test_radical_func (CHISE_Char_ID cid, CHISE_Feature db,
+ CHISE_Value *valdatum)
+{
+ unsigned char buf[256];
+ unsigned char name[256];
+ int ucs = -1;
+
+ if (chise_value_size (valdatum) < 256)
+ {
+ strncpy (buf, chise_value_data (valdatum),
+ chise_value_size (valdatum));
+ buf[chise_value_size (valdatum)] = '\0';
+ printf ("%s\t", buf);
+ }
+ else
+ printf ("%s\t",
+ chise_value_to_c_string (valdatum));
+
+ if (strcmp (buf, "75") == 0) /* Tree */
+ {
+ printf ("#x%08X ", cid);
+ if ( chise_char_gets_feature_value
+ (cid, chise_ds_get_feature (ds, "=ucs"),
+ buf, sizeof (buf)) != NULL )
+ {
+ ucs = atoi (buf);
+ printf ("[U-%08X]", ucs);
+ }
+ else if ( chise_char_gets_feature_value
+ (cid, chise_ds_get_feature (ds, "=>ucs"),
+ buf, sizeof (buf)) != NULL )
+ {
+ ucs = atoi (buf);
+ printf ("(U-%08X)", ucs);
+ }
+ else
+ printf (" ");
+
+ printf ("\n");
+ }
+ else
+ printf ("\n");
+ return 0;
+}
+