From 899b79941b9b7f62afda5d4ebab21f03737f3266 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 12 Mar 2023 12:30:11 +0100 Subject: [PATCH] upgraded underline printing --- src/chat/main/client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/chat/main/client.c b/src/chat/main/client.c index 4482fd7..6f17042 100644 --- a/src/chat/main/client.c +++ b/src/chat/main/client.c @@ -40,7 +40,12 @@ int main(void) server_addr.sin_addr.s_addr = inet_addr(line); - printf("###################\n\n\n"); + //PRINT UNDERLINE + for (unsigned long i = 0; i < strlen(line) + 3; i++) + { + printf("#"); + } + printf("\n\n\n"); int connectStatus = connect(listen_socket, (SA *) &server_addr, sizeof(server_addr)); //CONNECT