Added simple implementation of hex/octal conversion
This commit is contained in:
Executable
+11
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user