Hi...
i have this code to check if file exist already and its work,
but what i need is : is to add feature to function to see if the file already exist open same file and rename it with another...
Type: Posts; User: zmhnak
Hi...
i have this code to check if file exist already and its work,
but what i need is : is to add feature to function to see if the file already exist open same file and rename it with another...
this is modification but the same problem it stucks @ getchar() or scanf(), again after inserting any char except 'y' ,promting it for new input ,after it stuck if the user insert any new char it...
Hi...
i program signal handler like this ?
void
sig_quit(int signo)
{
char ans[5];
int check = 0;
Hi...
Im programming client/server app that client provide the file name then the server send it to client then the client will save it ..
so i want to make signal handler to handle zombie...
ok i know this my frnd,but give me an example in "code"to illstrate this please? using open func()
Hi...
i am programming Cli/Ser ,so part of the program is to open file to download it from client side,but i want to return the global value Errorno to print it to screen , and how to use strerror()...
i want the values like this in octal 755 .......
Hi...
Im programming client/server app that client provide the file name then the server send it to client then the client will save it ..
this is part of code in client
char buffer[1024];...
I am programming Cli/Serv app in c that the cli enter the file name of file then the server check up if the file exist @ server then the client can download it so this is part of code for server...
really sorry ,but while im writing the browser crashed,so i repeat the post again , i dont think the post was upload .
Sorry again.
Hi...
I prgoram unix sokcet programming , and part of my code is ti open file from server and open it , but i surrpised with this wierd error i dont have any reason for it ?
#include...
Hi...
i am working on socket network programming ,and part of code is to open file from server and download it , but i surrpised with this wired error ,but keep in mind i had include the Header...
u mean by no & here :the error is here
when this code excute it does not have any error
printf("File exist in server.\n");
state=1;
bzero(&buffer,sizeof(buffer));
buffer[0]=state;
Hi...
i am working on socket programming in c
so i define
int listenfd,connfd,portno,stringlen;
socklen_t clilen;
char buffer[1024];
Really really thanks i have no idea how i forgot this info :wink:
thnx,
i have this code :
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Hi...
i made client server program with fork ,without using signal handler
because i want to see the stutus zombie for parent server,but when i excute "ps" command i didn't see anything for...
Thnx very muvch for your replay...
i will try your advice and tell you what will happen...
Hi ...
i made client/server program in that the client send strings to server ,then the server send it back to the server the length of the string that entered by the client ,so i added feature as...