From 122a69f715acfe73963a2347cbb335e41bce944c Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 1 Dec 2022 16:08:38 +0800 Subject: Implement echo server with error handling Implement echo server with error handling Fix gitignore Implement an echo server with error handling --- common.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 common.c (limited to 'common.c') diff --git a/common.c b/common.c new file mode 100644 index 0000000..154e60d --- /dev/null +++ b/common.c @@ -0,0 +1,8 @@ +#include +#include + +void panic(const char *msg) +{ + perror(msg); + exit(EXIT_FAILURE); +} -- cgit v1.2.3