in reply to extract C function body

The functions in Text::Balanced should do a decent job.