Created
July 21, 2017 01:47
-
-
Save bigbeno37/0071611a17e7afd0d93100ec9c7ada90 to your computer and use it in GitHub Desktop.
Multiple C files
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
gcc main.c utils.c -o runMe |
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
#include <stdio.h> | |
#include "utils.h" | |
int main() { | |
printf(helloWorld()); | |
return 0; | |
} |
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
// | |
// Created by bigbeno37 on 21/07/17. | |
// | |
char *helloWorld() { | |
return "Hello world!\n"; | |
} |
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
// | |
// Created by bigbeno37 on 21/07/17. | |
// | |
#ifndef MYFIRSTPROJECT_UTILS_H | |
#define MYFIRSTPROJECT_UTILS_H | |
char *helloWorld(); | |
#endif //MYFIRSTPROJECT_UTILS_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment