ricedragon 0 Newbie Poster

I am currently writing a Client and server program and I have no idea where when wrong with the write function


It calls the function

writeToclient (int clientFd)
{

tatic  char* win  = "you win !";
 write (cliendFD , win , strlen(win)+1) ;

printf("test");

}

it execute the write but it doesnt print the test. Anyone know why?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.