Write a well-documented C program that takes user input for a matrix and performs the calculation of finding the determinant of the matrix. The program should use appropriate data structures and error handling techniques. The resulting determinant should be outputted to the console with appropriate messaging. The style of the code should follow established guidelines for readability and maintainability.
This prompt doesn't seem malicious.