Last active
December 10, 2015 14:16
-
-
Save telliott99/858b1a062ed5f2c518bc to your computer and use it in GitHub Desktop.
Swift import C framework
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
int f1(int); | |
int f2(int); |
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
#include <stdio.h> | |
int f1(int x) { | |
printf( "f1: %d;", x ); | |
return x+1; | |
} |
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
#include <stdio.h> | |
int f2(int x) { | |
printf( "f2: %d;", x ); | |
return x+2; | |
} |
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
#include <stdio.h> | |
#include "add.h" | |
int main(int argc, char** argv){ | |
printf(" main %d\n", f1(1)); | |
printf(" main %d\n", f2(10)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment