From 14bbb45d375b611d19494874996e94aad64cf912 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 06 Nov 2023 17:15:05 +0800 Subject: [PATCH] add socket argments sample --- ch1_fileIO/file_io.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ch1_fileIO/file_io.c b/ch1_fileIO/file_io.c index cc1f391..c04a98b 100644 --- a/ch1_fileIO/file_io.c +++ b/ch1_fileIO/file_io.c @@ -1,6 +1,7 @@ -#include <stdio.h> +#include <stdio.h> #include <errno.h> -#include <string.h> +#include <string.h> +#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> @@ -39,6 +40,6 @@ cleanup: close(fd); - + return 0; } -- Gitblit v1.9.1