From 7856bf3569cc448fe3b360c3fca836593a0c0c7d Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 06 Nov 2023 17:01:27 +0800
Subject: [PATCH] format c source code
---
ch1_fileIO/syserr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ch1_fileIO/syserr.c b/ch1_fileIO/syserr.c
index 22f775b..df8ed1f 100644
--- a/ch1_fileIO/syserr.c
+++ b/ch1_fileIO/syserr.c
@@ -11,12 +11,12 @@
{
char *file_name = "/test.txt";
int fd=-1;
-
+
fd=open(file_name, O_RDONLY, 066);
if( fd < 0 )
{
- perror("Open file failure");
- printf("Open file %s failure: %s\n", file_name, strerror(errno));
+ perror("Open file failure");
+ printf("Open file %s failure: %s\n", file_name, strerror(errno));
return 0;
}
--
Gitblit v1.9.1