while ((line = fgets(fr_buf, sizeof(fr_buf)-1, fr)))
{
yaz_tok_parse_t tp = yaz_tok_parse_buf(yt, line);
int t = yaz_tok_move(tp);
while ((line = fgets(fr_buf, sizeof(fr_buf)-1, fr)))
{
yaz_tok_parse_t tp = yaz_tok_parse_buf(yt, line);
int t = yaz_tok_move(tp);