stdlib.h has been added to client.c