From d7529b19f1edb7d7deb5300748b4b3edfaf6a326 Mon Sep 17 00:00:00 2001
From: ChouTatsumi <choutatsumi@gmail.com>
Date: Mon, 29 Apr 2019 21:06:32 +1000
Subject: [PATCH] before branch strcat

---
 server.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/server.c b/server.c
index e11cc9a..e638ec6 100644
--- a/server.c
+++ b/server.c
@@ -396,7 +396,21 @@ bool show_start_page(int sockfd, char* username) {
 }
 
 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) {
-- 
GitLab