required changes:

- import relevant libraries pointing to malloc
- malloc void* must be converted to correct pointer type
- make sure that missing datatypes are declared
- make sure pointer is dereferenced
- make sure pointer is not checked for null before dereferencing
- _a main function is not needed_
- _linking may fail_