Text window project in C