Using low-level functions when exploiting the C library
If you are using the libraries in an application that does not have a
main() function, you must re-implement some functions in the library.
__rt_raise() is essential if you are using the heap.
rand() is called,
srand() must be
called first. This is done automatically during library initialization
but not when you avoid the library initialization.