Skip to content
Snippets Groups Projects
Commit d7529b19 authored by ChouTatsumi's avatar ChouTatsumi
Browse files

before branch strcat

parent 33f46355
No related branches found
No related tags found
No related merge requests found
...@@ -396,7 +396,21 @@ bool show_start_page(int sockfd, char* username) { ...@@ -396,7 +396,21 @@ bool show_start_page(int sockfd, char* username) {
} }
bool show_accepted_page(int sockfd) { bool show_accepted_page(int sockfd) {
return true; int list_len = 0;
if (sockfd == p1_sockfd) list_len = p1_guess_len;
else if (sockfd == p2_sockfd)
list_len = p2_guess_len;
char* added_prefix = "<p>";
int added_prefix_length = strlen(added_prefix);
char* added_suffix = "</p>\n\n";
int added_suffix_length = sizeof(added_suffix);
for (int i = 0; i < list_len; i++) {
}
return show_modified_page(sockfd, ACCEPTED_PAGE, added, 212);
} }
void print_buff(char* request) { void print_buff(char* request) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment