Added simple implementation of hex/octal conversion

This commit is contained in:
kdeng00
2020-10-29 21:47:51 -04:00
parent 72906bac35
commit 9639c6453e
8 changed files with 239 additions and 71 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
gcc -c main.c -I../../libraries/test_library1/include -o bin/main.o
cd ../../libraries/test_library1
./compile.sh
cd ../../experiments/call_library
gcc bin/main.o -L../../libraries/test_library1/bin/static -ltestlibrary -o bin/call_library
+19
View File
@@ -0,0 +1,19 @@
#include <stdio.h>
#include "test.h"
int main()
{
printf("Going to print test value from TestLibrary\n");
const double test_value = TestLibrary_test_value();
printf("%.0f\n", test_value);
const double new_test_value = TestLibrary_multiply_by_one_point_five(test_value);
printf("Multiplied by 1.5: %.2f\n", new_test_value);
return 0;
}