minimalistic chat application in C