Last active
August 29, 2015 14:14
-
-
Save kazmura11/388e8295aabaa3afe82c to your computer and use it in GitHub Desktop.
C言語のヘッダの書き方(main.c)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define GLOBAL_VARIABLE_DEFINED /* 実体はこっち */ | |
#include "global.h" | |
#include "a.h" | |
#include <stdio.h> | |
int main() | |
{ | |
bar_proc(); | |
g_FooBar.a = 1; | |
g_FooBar.b = 2; | |
printf("[%s] a : %d, b : %d\n", __func__, | |
g_FooBar.a, g_FooBar.b); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment