TXT

update_old_file.c

By Helen Bell,2014-11-26 20:04
22 views 0
#include "updata_old_file.h" void updata_old_file(int socket_fd, int temp_file_fd, char *old_file_buf) { PROTC protc; while(1) { read(socket_fd, &protc, sizeof(PROTC)); if (protc.cmd_num == NEW_DATA) { char new_data[protc.cmd_par]; read(socket_fd, new_data, protc.cmd_par); write(temp_file_fd, new_data, protc.cmd_par); }..
null
null

Report this document

For any questions or suggestions please email
cust-service@docsford.com