Using C, Finish implementation of the error reporting system in`src/ohno.c`.
The formatting of how errors are presented is up to you but youmust print your messages on the FILE * passed into `ohno_init()`(hint: use `fprintf`).
#include
static struct ohno_state *state;
/*
* Initialize the ohno error system with the given file stream andapplication name.
*
* This should allocate and populate the state structure.
* Make sure to make a copy of `app_name` as we’ll need to use thisstring later when `ohno()` is called.
*
* Feel free to return non-zero if anything went wrong (like nothaving sufficient memory).
*/
int
ohno_init(FILE *where_to, const char *app_name)
{
return 0;
}
/*
* Free any memory allocated to the
OR
OR