From 8080c75ac5026f12680fae5b612c2e16d741591f Mon Sep 17 00:00:00 2001
From: LEESANGKYEONG <sskk713@ajou.ac.kr>
Date: Thu, 6 Aug 2020 01:38:00 +0900
Subject: [PATCH] second HW

---
 three files/func.c | 14 ++++++++++++++
 three files/func.h |  1 +
 three files/main.c |  9 +++++++++
 3 files changed, 24 insertions(+)
 create mode 100644 three files/func.c
 create mode 100644 three files/func.h
 create mode 100644 three files/main.c

diff --git a/three files/func.c b/three files/func.c
new file mode 100644
index 0000000..9bfe28c
--- /dev/null
+++ b/three files/func.c	
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include "func.h"
+
+int func_name_or_id(){
+#ifdef PRINT_ID
+	printf("201723267\n");
+	return 0;
+
+#else 
+	printf("LEESANGKYEONG\n");
+	return 1;
+#endif
+}
+
diff --git a/three files/func.h b/three files/func.h
new file mode 100644
index 0000000..33718ed
--- /dev/null
+++ b/three files/func.h	
@@ -0,0 +1 @@
+extern int func_name_or_id();
diff --git a/three files/main.c b/three files/main.c
new file mode 100644
index 0000000..8ec9279
--- /dev/null
+++ b/three files/main.c	
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include "func.h"
+
+
+int main(){
+
+	printf("%d\n", func_name_or_id());
+}
+
-- 
GitLab