Use a convenience library
This commit is contained in:
6
src/common.c
Normal file
6
src/common.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include "common.h"
|
||||
void myfunc()
|
||||
{
|
||||
printf("myfunc() called\n");
|
||||
}
|
||||
5
src/common.h
Normal file
5
src/common.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#ifndef COMMON_H
|
||||
#define COMMON_H
|
||||
void myfunc();
|
||||
|
||||
#endif /* COMMON_H */
|
||||
@@ -1,7 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include "common.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printf ("Hello world\n");
|
||||
myfunc();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user