...
In this non-compliant code example, main()
invokes the malloc()
function to allocated allocate space to copy a string. The string literal is copied into the allocated memory, which is then printed and the memory freed. The program also registers the signal handler int_handler()
to handle the terminal interrupt signal SIGINT
.
...