Simple chatroom in C