Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
battle_c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LEESANGKYEONG
battle_c
Commits
4907bef7
Commit
4907bef7
authored
4 years ago
by
LEESANGKYEONG
Browse files
Options
Downloads
Patches
Plain Diff
Second HW
parents
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
func.c
+15
-0
15 additions, 0 deletions
func.c
func.h
+3
-0
3 additions, 0 deletions
func.h
func.h.gch
+0
-0
0 additions, 0 deletions
func.h.gch
main.c
+10
-0
10 additions, 0 deletions
main.c
with
28 additions
and
0 deletions
func.c
0 → 100644
+
15
−
0
View file @
4907bef7
// func.c file
#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
}
This diff is collapsed.
Click to expand it.
func.h
0 → 100644
+
3
−
0
View file @
4907bef7
// func.h file
extern
int
func_name_or_id
();
This diff is collapsed.
Click to expand it.
func.h.gch
0 → 100644
+
0
−
0
View file @
4907bef7
File added
This diff is collapsed.
Click to expand it.
main.c
0 → 100644
+
10
−
0
View file @
4907bef7
// main.c
#include
<stdio.h>
#include
"func.h"
int
main
(){
printf
(
"%d
\n
"
,
func_name_or_id
());
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment