added C version of info script