Use a convenience library

This commit is contained in:
Ruben Laguna
2015-02-09 22:21:18 +01:00
parent d310872077
commit 4135ef2c84
6 changed files with 29 additions and 1 deletions

6
src/common.c Normal file
View File

@@ -0,0 +1,6 @@
#include <stdio.h>
#include "common.h"
void myfunc()
{
printf("myfunc() called\n");
}

5
src/common.h Normal file
View File

@@ -0,0 +1,5 @@
#ifndef COMMON_H
#define COMMON_H
void myfunc();
#endif /* COMMON_H */

View File

@@ -1,7 +1,9 @@
#include <stdio.h>
#include "common.h"
int main(int argc, char *argv[])
{
printf ("Hello world\n");
myfunc();
return 0;
}