added function to parse extern function prototypes