New course! Every coder should learn Generative AI!
Try a free lesson+ 2
This code contains a check to make sure the "info" pointer is NULL, a simple check to see if a heap allocation error occurs.
(if an error occurs while allocating memory on the heap using the malloc() function, then NULL is returned).