Removed call to fprintf
Use calloc on struct intead of malloc