oh! sorry, i just typed that carelessly..my fault.
i should have typed "fgets()" instead of "scanf().."
Type: Posts; User: nash@nitk
oh! sorry, i just typed that carelessly..my fault.
i should have typed "fgets()" instead of "scanf().."
Ofcourse, I know what fgets() does and how it works.
and by the way, your idea still didnt work.
it is still taking in the '\n' as the input to the scanf() , in the second iteration and...
well, that doesnt do the job either
this is the output now :
what do you want to do
a> Send a file to the backend
b> Read a file in the backend
phew!! never knew that was happening..
I have a doubt in your method . OK, i will do:
fgets(&choice,sizeof(char), stdin);
fine, what did you mean by check the contents in...
I cant explain why this is happening :
while(1)
{
...
I started with networking today..THis piece of code is giving me some problem, can some one help me??
client side:
//sockfd is the socket descriptor that I am using to send and...