include stdlib.h for exit()