added function to print function prototype errors