Added function prototype for printerrno