Created
September 25, 2010 21:49
-
-
Save gaconnet/597332 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // file: one_a.c | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <time.h> | |
| #include "one_b.c" | |
| // Compile: | |
| // gcc -Wall -std=c99 one_a.c | |
| // Run: | |
| // ./a.out | |
| void this_function_from_one_a() | |
| { | |
| printf("Goodbye"); | |
| } | |
| int main(void) { | |
| this_function_from_one_a(); | |
| that_function_from_one_b(3); | |
| return 0; | |
| } | |
| // file: one_b.c | |
| void that_function_from_one_b(int n) { | |
| for(int i = 0; i < n; ++i) { | |
| printf(", cruel"); | |
| } | |
| printf(" world.\n"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment