void send_message(char *message) { t_data *data; data = get_data(); if (data->server_pid) { while (*message) { char_to_bin(*message); message++; } char_to_bin('\n'); } }
int main(){ char c; c=getchar(); while(c!=EOF) { if(c!='\n'){ char_to_bin(c); } c=getchar(); } return 0; }