I was referring to the "..." in the fread call as well.
However, in your struct you declared cName as an array of 32 characters, then you likely attempted to set cName to '\0'. Valid indices are 0-31. 32 is right out. It worked in your malloc version because you malloced 33 characters.
Unefortunately I only know Html5, and I know that I will have to learn the basics, and after the more difficult
In fact I know a bit about programing (a bit of C++ and Mysql, but I don't master them)
Those two statements are at odds with one another.
If you only want iOS, then you could still use Xamarin or PhoneGap, or you could go native with Objective-C (sort of a "C with objects").
As conquestor3 pointed out, you're really just going for a basic button-driven app, so any of the basic tutorials available for whatever toolset you choose should get you on your way.