Working on exercise 3-5 but I'm creating some libraries

This commit is contained in:
kdeng00
2020-10-25 22:51:28 -04:00
parent 32a77a1e93
commit 72906bac35
8 changed files with 269 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
// #include "../include/test.h"
#include "test.h"
int TestLibrary_test_value()
{
return 48;
}
double TestLibrary_multiply_by_one_point_five(const double value)
{
return value * 1.5;
}
void __attribute__((constructor)) initLibrary(void)
{
printf("TestLibrary Initialized\n");
}
void __attribute__((destructor)) cleanUpLibrary(void)
{
printf("TestLibrary is exiting\n");
}